...
|
...
|
@@ -28,6 +28,14 @@ app.use(function(req, res, next) { |
|
|
next()
|
|
|
})
|
|
|
|
|
|
app.get('/', function(req, res) {
|
|
|
res.sendFile(path.join(__dirname, '/public/index.html'))
|
|
|
})
|
|
|
|
|
|
app.get(/\.html$/, function(req, res) {
|
|
|
res.sendFile(path.join(__dirname, '/public/index.html'))
|
|
|
})
|
|
|
|
|
|
app.use(routes);
|
|
|
|
|
|
// catch 404 and forward to error handler
|
...
|
...
|
|