mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
revamped db schema and implemented some simple api
This commit is contained in:
4
app.js
4
app.js
@@ -19,5 +19,7 @@ app.use(bodyParser.urlencoded({ extended: true }));
|
||||
app.use(bodyParser.json());
|
||||
app.use('/v1', passport.authenticate('bearer', { session: false }));
|
||||
app.use('/', routes);
|
||||
|
||||
app.use((err, req, res, next) => {
|
||||
req.status(500).json({msg: err.message});
|
||||
});
|
||||
app.listen(PORT);
|
||||
|
||||
Reference in New Issue
Block a user