trivial change to 404 handling
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 39s Details

This commit is contained in:
Ladd Hoffman 2024-04-04 12:55:59 -05:00
parent b2567b2583
commit 940384774a
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,8 @@ app.get('/read/:hash', async (req, res) => {
});
app.get('*', (req, res) => {
console.log(`req.path: ${req.path}`);
res.send('Hello World!');
console.log(`404 req.path: ${req.path}`);
res.status(404).json({ errorCode: 404 });
});
app.listen(port, () => {