diff options
| author | Pitu <[email protected]> | 2019-02-19 23:52:24 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2019-02-19 23:52:24 +0900 |
| commit | 89a271818ed25b0a17a17dd1d6804e34d1f2ec0f (patch) | |
| tree | 2e63d3b41eeacb8f172f8ee3e1374124b934c6a3 /src/api/routes/configGET.js | |
| parent | Create wizard.js (diff) | |
| download | host.fuwn.me-89a271818ed25b0a17a17dd1d6804e34d1f2ec0f.tar.xz host.fuwn.me-89a271818ed25b0a17a17dd1d6804e34d1f2ec0f.zip | |
Switch config to .env
Diffstat (limited to 'src/api/routes/configGET.js')
| -rw-r--r-- | src/api/routes/configGET.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/api/routes/configGET.js b/src/api/routes/configGET.js deleted file mode 100644 index 4bc7e15..0000000 --- a/src/api/routes/configGET.js +++ /dev/null @@ -1,22 +0,0 @@ -const Route = require('../structures/Route'); -const config = require('../../../config'); - -class configGET extends Route { - constructor() { - super('/config', 'get', { bypassAuth: true }); - } - - run(req, res) { - return res.json({ - version: process.env.npm_package_version, - URL: config.filesServeLocatio, - baseURL: config.backendLocation, - serviceName: config.serviceName, - maxFileSize: config.uploads.uploadMaxSize, - chunkSize: config.uploads.chunkSize, - maxLinksPerAlbum: config.albums.maxLinksPerAlbum - }); - } -} - -module.exports = configGET; |