settings: move dynamic dns to network

and add tests
This commit is contained in:
Girish Ramakrishnan
2023-08-02 22:53:29 +05:30
parent fccc2d04a9
commit a19e502198
9 changed files with 111 additions and 43 deletions
+2
View File
@@ -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);