|
@@ -108,7 +108,7 @@ module.exports = (crowi) => {
|
|
|
* $ref: '#/components/schemas/AppSettingsParams'
|
|
* $ref: '#/components/schemas/AppSettingsParams'
|
|
|
*/
|
|
*/
|
|
|
router.get('/', accessTokenParser, loginRequired, adminRequired, async(req, res) => {
|
|
router.get('/', accessTokenParser, loginRequired, adminRequired, async(req, res) => {
|
|
|
- const appSettingParams = {
|
|
|
|
|
|
|
+ const appSettingsParams = {
|
|
|
title: crowi.configManager.getConfig('crowi', 'app:title'),
|
|
title: crowi.configManager.getConfig('crowi', 'app:title'),
|
|
|
confidential: crowi.configManager.getConfig('crowi', 'app:confidential'),
|
|
confidential: crowi.configManager.getConfig('crowi', 'app:confidential'),
|
|
|
globalLang: crowi.configManager.getConfig('crowi', 'app:globalLang'),
|
|
globalLang: crowi.configManager.getConfig('crowi', 'app:globalLang'),
|
|
@@ -121,7 +121,7 @@ module.exports = (crowi) => {
|
|
|
smtpUser: crowi.configManager.getConfig('crowi', 'mail:smtpUser'),
|
|
smtpUser: crowi.configManager.getConfig('crowi', 'mail:smtpUser'),
|
|
|
smtpPassword: crowi.configManager.getConfig('crowi', 'mail:smtpPassword'),
|
|
smtpPassword: crowi.configManager.getConfig('crowi', 'mail:smtpPassword'),
|
|
|
};
|
|
};
|
|
|
- return res.apiv3({ appSettingParams });
|
|
|
|
|
|
|
+ return res.apiv3({ appSettingsParams });
|
|
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|