summaryrefslogtreecommitdiffstats
path: root/server/app.js
diff options
context:
space:
mode:
authorUdo Walter2018-08-04 06:18:48 +0200
committerUdo Walter2018-08-04 06:18:48 +0200
commit7fd2c7287794440653b589c3c662e0d582d35a80 (patch)
tree8f25c3b9ab1c8a8aeecbfb3c897301a107849960 /server/app.js
parent[webapp+server] switched from hash mode routing to history mode (diff)
downloadbas-7fd2c7287794440653b589c3c662e0d582d35a80.tar.gz
bas-7fd2c7287794440653b589c3c662e0d582d35a80.tar.xz
bas-7fd2c7287794440653b589c3c662e0d582d35a80.zip
[server] revert unnecessary change
Diffstat (limited to 'server/app.js')
-rw-r--r--server/app.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/app.js b/server/app.js
index 6ae77e5..8a18b58 100644
--- a/server/app.js
+++ b/server/app.js
@@ -26,12 +26,11 @@ 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 ###############################