Compare commits
No commits in common. "ce31beb1a8b16a3c2346b3c08fddaea2298f4e50" and "2dd52a0c1d0ecaf66b517c8f038957803493e87f" have entirely different histories.
ce31beb1a8
...
2dd52a0c1d
@ -43,7 +43,7 @@ model Item {
|
||||
contactInfo contactInfo? @relation(fields: [contactInfoId], references: [id]) ///
|
||||
contactInfoId Int?
|
||||
|
||||
manufacturer String?
|
||||
manufacturer String
|
||||
|
||||
category itemCategory? @relation(fields: [categoryId], references: [id])
|
||||
categoryId Int?
|
||||
|
@ -16,9 +16,9 @@ Router.use('/', frontend_routes);
|
||||
Router.all('*', function (req, res) {
|
||||
// TODO: Respond based on content-type (with req.is('application/json'))
|
||||
if (req.is('application/json')) {
|
||||
res.status(404).json({ errorcode: 'NOT_FOUND', error: 'Not Found!' });
|
||||
res.status(418)//.json({ errorcode: '404' });
|
||||
} else {
|
||||
res.status(404).render(__path + '/src/frontend/errors/404.eta.html', { url: req.originalUrl });
|
||||
res.status(418)//.render(__path + '/src/frontend/errors/404.eta.html', { url: req.originalUrl });
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user