| 17 | // const cronExpireApi = require('./cron/expire.js'); |
| 18 | |
| 19 | const appGet = app => app.get('/', (req, res) => { |
| 20 | res.setHeader('Content-Type', 'application/json'); |
| 21 | res.send(JSON.stringify({ |
| 22 | status: 200, |
| 23 | version: pjson.version, |
| 24 | message: "This is CloudBoost API. If you're looking for the dashboard. It should be running on port 1440.", |
| 25 | })); |
| 26 | }); |
| 27 | |
| 28 | const appFilesGet = app => app.get('/getFile/:filename', (req, res) => { // for getting any file from resources/ |
| 29 | res.sendFile(`resources/${req.params.filename}`, { |