trivial change to 404 handling
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 39s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 39s
Details
This commit is contained in:
parent
b2567b2583
commit
940384774a
|
@ -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, () => {
|
||||
|
|
Loading…
Reference in New Issue