diff --git a/src/server.ts b/src/server.ts index 507cf4a..6e3dae2 100644 --- a/src/server.ts +++ b/src/server.ts @@ -32,7 +32,7 @@ app.get( ); app.get( - '/repositories', + '(/|/repositories)', async (req: Request, res: Response): Promise => { try { const parsedUrl = url.parse(req.originalUrl); @@ -115,6 +115,10 @@ app.post( } ); +app.use((req, res) => { + res.sendStatus(404); +}); + app.listen( PORT, (): ApiResponse => {