dashboard-core/theme/dbd-soft-ui/pages/get/settings.js
Jonny_Bro (Nikita) 08275381dc integrate theme
2023-06-19 14:21:58 +05:00

11 lines
399 B
JavaScript

module.exports = {
page: '/settings/:id/:category',
execute: async (req, res, app, config, themeConfig, info) => {
const categoryExists = config.settings?.find(
(s) => s.categoryId === req.params.category
)
if (!categoryExists) return config.errorPage(req, res, null, 404)
await config.guildSettings(req, res, false, req.params.category)
}
}