Added Sentry / Added comment

This commit is contained in:
2023-05-15 21:58:01 +02:00
parent 6afdb4fcdd
commit 4bfd71f09f
5 changed files with 143 additions and 9 deletions

View File

@@ -12,6 +12,9 @@ Router.use('/static', static_routes);
Router.use('/api', api_routes);
Router.use('/', frontend_routes);
Router.get('/debug-sentry', function mainHandler(req, res) {
throw new Error('My first Sentry error!');
});
// Default route.
Router.all('*', function (req, res) {
// TODO: Respond based on content-type (with req.is('application/json'))