summaryrefslogtreecommitdiffstats
path: root/server/app.js
diff options
context:
space:
mode:
authorUdo Walter2018-08-04 06:11:39 +0200
committerUdo Walter2018-08-04 06:11:39 +0200
commitfe619505b8b3b91f940ea6dbeb8079ffe4812897 (patch)
tree2734b80552804757d594bbf24559cec4325292fb /server/app.js
parent[webapp] login now redirect to the requested route (diff)
downloadbas-fe619505b8b3b91f940ea6dbeb8079ffe4812897.tar.gz
bas-fe619505b8b3b91f940ea6dbeb8079ffe4812897.tar.xz
bas-fe619505b8b3b91f940ea6dbeb8079ffe4812897.zip
[webapp+server] switched from hash mode routing to history mode
Diffstat (limited to 'server/app.js')
-rw-r--r--server/app.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/app.js b/server/app.js
index 8a18b58..6ae77e5 100644
--- a/server/app.js
+++ b/server/app.js
@@ -26,11 +26,12 @@ app.use(cookieParser())
// ############################################################################
// ########################### setup routes ##################################
-app.use(express.static('public'))
-
var apiRouter = require(path.join(__dirname, 'router'))
app.use('/api', apiRouter)
+app.use(express.static('public'))
+app.use('*', express.static('public/index.html'))
+
// ############################################################################
// ######################### handle http errors ###############################