MCPcopy Index your code
hub / github.com/CloudBoost/cloudboost / appFilesGet

Function appFilesGet

routes.js:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26});
27
28const appFilesGet = app => app.get('/getFile/:filename', (req, res) => { // for getting any file from resources/
29 res.sendFile(`resources/${req.params.filename}`, {
30 root: __dirname,
31 });
32});
33
34const notFound = app => app.use((req, res) => {
35 res.status(404).json({

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected