firewall: implement blocklist
This commit is contained in:
@@ -241,6 +241,10 @@ function initializeExpressSync() {
|
||||
return req.params.setting === 'cloudron_avatar' ? multipart(req, res, next) : next();
|
||||
}, routes.branding.set);
|
||||
|
||||
// network routes
|
||||
router.get ('/api/v1/network/blocklist', token, authorizeAdmin, routes.network.getBlocklist);
|
||||
router.post('/api/v1/network/blocklist', json, token, authorizeAdmin, routes.network.setBlocklist);
|
||||
|
||||
// settings routes (these are for the settings tab - avatar & name have public routes for normal users. see above)
|
||||
router.get ('/api/v1/settings/:setting', token, authorizeAdmin, routes.settings.get);
|
||||
router.post('/api/v1/settings/backup_config', json, token, authorizeOwner, routes.settings.setBackupConfig);
|
||||
|
||||
Reference in New Issue
Block a user