|
@@ -686,18 +686,16 @@ module.exports = (crowi) => {
|
|
|
router.put('/customize-logo', loginRequiredStrictly, adminRequired, validator.logo, apiV3FormValidator, async(req, res) => {
|
|
router.put('/customize-logo', loginRequiredStrictly, adminRequired, validator.logo, apiV3FormValidator, async(req, res) => {
|
|
|
|
|
|
|
|
const {
|
|
const {
|
|
|
- isDefaultLogo, customizedLogoSrc,
|
|
|
|
|
|
|
+ isDefaultLogo,
|
|
|
} = req.body;
|
|
} = req.body;
|
|
|
|
|
|
|
|
const requestParams = {
|
|
const requestParams = {
|
|
|
'customize:isDefaultLogo': isDefaultLogo,
|
|
'customize:isDefaultLogo': isDefaultLogo,
|
|
|
- 'customize:customizedLogoSrc': customizedLogoSrc,
|
|
|
|
|
};
|
|
};
|
|
|
try {
|
|
try {
|
|
|
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', requestParams);
|
|
await crowi.configManager.updateConfigsInTheSameNamespace('crowi', requestParams);
|
|
|
const customizedParams = {
|
|
const customizedParams = {
|
|
|
isDefaultLogo: await crowi.configManager.getConfig('crowi', 'customize:isDefaultLogo'),
|
|
isDefaultLogo: await crowi.configManager.getConfig('crowi', 'customize:isDefaultLogo'),
|
|
|
- customizedLogoSrc: await crowi.configManager.getConfig('crowi', 'customize:customizedLogoSrc'),
|
|
|
|
|
};
|
|
};
|
|
|
return res.apiv3({ customizedParams });
|
|
return res.apiv3({ customizedParams });
|
|
|
}
|
|
}
|