diff options
| author | Pitu <[email protected]> | 2021-06-17 03:39:58 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-06-17 03:39:58 +0900 |
| commit | 30808a3574bec0c3c9c240833d2fa78715862422 (patch) | |
| tree | 8354df223e4088e43b85a6764300d080866ee38d /src/api/routes/service | |
| parent | fix: upload size (diff) | |
| download | host.fuwn.me-30808a3574bec0c3c9c240833d2fa78715862422.tar.xz host.fuwn.me-30808a3574bec0c3c9c240833d2fa78715862422.zip | |
feat: fetch all settings if admin
Diffstat (limited to 'src/api/routes/service')
| -rw-r--r-- | src/api/routes/service/configAllGET.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/api/routes/service/configAllGET.js b/src/api/routes/service/configAllGET.js new file mode 100644 index 0000000..fe9dae6 --- /dev/null +++ b/src/api/routes/service/configAllGET.js @@ -0,0 +1,17 @@ +const Route = require('../../structures/Route'); +const Util = require('../../utils/Util'); + +class configGET extends Route { + constructor() { + super('/service/config/all', 'get', { adminOnly: true }); + } + + run(req, res) { + return res.json({ + message: 'Successfully retrieved config', + config: Util.config + }); + } +} + +module.exports = configGET; |