This commit is contained in:
Eugene Pankov
2021-07-26 18:34:18 +02:00
parent 3a9b3e885b
commit 103dcea95b
3 changed files with 3 additions and 5 deletions

View File

@@ -31,11 +31,11 @@ function start () {
app.set('view engine', 'html')
app.set('views', DIST_FOLDER)
app.get('*.*', express.static(join(DIST_FOLDER, 'static'), {
app.use('/static', express.static(DIST_FOLDER, {
maxAge: '1y',
}))
app.get('*', (req, res) => {
app.get(['/', '/app', '/login'], (req, res) => {
res.render('index', { req })
})