MCPcopy Create free account
hub / github.com/CloudBoost/cloudboost / appGet

Function appGet

routes.js:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17// const cronExpireApi = require('./cron/expire.js');
18
19const 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
28const appFilesGet = app => app.get('/getFile/:filename', (req, res) => { // for getting any file from resources/
29 res.sendFile(`resources/${req.params.filename}`, {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected