diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -6,8 +6,8 @@ const bodyParser = require('body-parser') const compression = require('compression') const routes = require('./routes/index') -const meetingpointProxy = require('./routes/meetingpointProxy') -const hello = require('./routes/hello') +const getSchedule = require('./routes/getSchedule') +const manifest = require('./routes/manifest') const app = express() @@ -17,15 +17,16 @@ app.use(compression()) app.set('views', path.join(__dirname, 'views')) app.set('view engine', 'jade') -app.use(logger('common')) +app.use(logger('dev')) app.use(bodyParser.json()) app.use(bodyParser.urlencoded({ extended: false })) app.use(cookieParser()) + +app.use('/manifest.webmanifest', manifest) app.use(express.static(path.join(__dirname, 'public'))) app.use('/', routes) -app.use('/meetingpointProxy', meetingpointProxy) -app.use('/hello', hello) +app.use('/get', getSchedule) // catch 404 and forward to error handler app.use(function (req, res, next) { |