Friday, 3 August 2018

routes above static?

is it normal behavior to have to put your routes above the static if you need to stream files in /public? I have a stream function in the index router that is ignored unless I put the static below like so. is this normal?app.use('/', index); app.use('/api', api); app.use('/admin', admin); app.use(express.static('public'));

Submitted August 04, 2018 at 05:53AM by superfake123

No comments:

Post a Comment