Closed iBicha closed 6 years ago
Would a shortcut to res.sendFile make sense to be added to serve-static?
res.sendFile
i would say
//serving just my index file router.get('/', express.static(path.join(__dirname, 'public', 'index.html')));
Makes a lot of sense. Any thoughts?
Hm, yea, that can make sense, especially if it's just a small addition to this module.
Will close for now. Feel free to reopen if still relevent.
Would a shortcut to
res.sendFile
make sense to be added to serve-static?i would say
Makes a lot of sense. Any thoughts?