init + api use

This commit is contained in:
Primakov Alexandr Alexandrovich
2025-11-03 17:59:08 +03:00
commit e777b57991
52 changed files with 20725 additions and 0 deletions

31
bro.config.js Normal file
View File

@@ -0,0 +1,31 @@
const pkg = require('./package')
const webpack = require('webpack')
module.exports = {
apiPath: 'stubs/api',
webpackConfig: {
output: {
publicPath: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`
},
plugins: [
new webpack.DefinePlugin({
KC_URL: process.env.KC_URL || '"https://auth.brojs.ru"',
KC_REALM: process.env.KC_REALM || '"itpark"',
KC_CLIENT_ID: process.env.KC_CLIENT_ID || '"journal"',
}),
],
},
/* use https://admin.bro-js.ru/ to create config, navigations and features */
navigations: {
'challenge-admin.main': '/challenge-admin',
'link.challenge': '/challenge',
},
features: {
'challenge-admin': {
// add your features here in the format [featureName]: { value: string }
},
},
config: {
'challenge-admin.api': '/api'
}
}