mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-04-18 14:27:18 -05:00
remove the use of any from server.ts
This commit is contained in:
parent
af863e4f19
commit
7884836013
|
|
@ -52,8 +52,8 @@ app.use((_request: express.Request, response: express.Response) => {
|
|||
|
||||
// non-404 error handler
|
||||
LOG_INFO('Creating non-404 status handler');
|
||||
app.use((error: any, _request: express.Request, response: express.Response, _next: express.NextFunction) => {
|
||||
const status = error.status || 500;
|
||||
app.use((_error: unknown, _request: express.Request, response: express.Response, _next: express.NextFunction) => {
|
||||
const status = 500;
|
||||
response.type('application/xml');
|
||||
response.status(404);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user