mbrkdev / sylph

File system based server router
Apache License 2.0
3 stars 1 forks source link

Static Folder Serving #5

Closed mbrkdev closed 5 years ago

mbrkdev commented 5 years ago

Sylph needs to be able to serve static assets on certain routes. Currently the /server/public folder is totally useless.

mbrkdev commented 5 years ago

Nanoexpress is meant to have this but there is no sign of the method in the code and following the docs causes an error.

mbrkdev commented 5 years ago

Thought resolved but using:

app.use(require('nanoexpress/build/static.js')(publicFolder));

Breaks everything, it tries to static serve every endpoint by default instead of in a fallback pattern.

mbrkdev commented 5 years ago

Fixed in Sifrr Migration (1.5.0)