-// Always serve index client page (the client is a single page application, let it handle routing)
-app.use('/*', function (req, res) {
- if (req.accepts(ACCEPT_HEADERS) === 'html') {
- return res.sendFile(path.join(__dirname, '../client/dist/index.html'))
- }
-
- return res.status(404).end()
-})
+// Client files, last valid routes!
+app.use('/', clientsRouter)