diff options
| author | Pitu <[email protected]> | 2021-03-23 22:24:11 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-03-23 22:24:11 +0900 |
| commit | b24c0175f5ef7ac3ac1f3689bc4f96c4d65d2a52 (patch) | |
| tree | 17c711a4fd949da681a19a21e044a6d7576cb301 /src/api/routes/service | |
| parent | chore: add screenshots to the readme (diff) | |
| parent | fix: sections not rendering (diff) | |
| download | host.fuwn.me-b24c0175f5ef7ac3ac1f3689bc4f96c4d65d2a52.tar.xz host.fuwn.me-b24c0175f5ef7ac3ac1f3689bc4f96c4d65d2a52.zip | |
Merge branch 'feature/database_based_settings' of https://github.com/Zephyrrus/huskysafe into Zephyrrus-feature/database_based_settings
Diffstat (limited to 'src/api/routes/service')
| -rw-r--r-- | src/api/routes/service/configSchemaGET.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/api/routes/service/configSchemaGET.js b/src/api/routes/service/configSchemaGET.js new file mode 100644 index 0000000..90befa9 --- /dev/null +++ b/src/api/routes/service/configSchemaGET.js @@ -0,0 +1,17 @@ +const Route = require('../../structures/Route'); +const { configSchema } = require('../../structures/Setting'); + +class configGET extends Route { + constructor() { + super('/service/config/schema', 'get', { adminOnly: true }); + } + + run(req, res) { + return res.json({ + message: 'Successfully retrieved schema', + schema: configSchema + }); + } +} + +module.exports = configGET; |