settings: move dynamic dns to network
and add tests
This commit is contained in:
@@ -290,6 +290,8 @@ async function initializeExpressSync() {
|
||||
router.post('/api/v1/network/blocklist', json, token, authorizeOwner, routes.network.setBlocklist);
|
||||
router.get ('/api/v1/network/trusted_ips', token, authorizeOwner, routes.network.getTrustedIps);
|
||||
router.post('/api/v1/network/trusted_ips', json, token, authorizeOwner, routes.network.setTrustedIps);
|
||||
router.get ('/api/v1/network/dynamic_dns', token, authorizeOwner, routes.network.getDynamicDns);
|
||||
router.post('/api/v1/network/dynamic_dns', json, token, authorizeOwner, routes.network.setDynamicDns);
|
||||
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user