refactor: remove redundant function signature

This commit is contained in:
Ali BARIN
2022-11-30 02:11:07 +01:00
parent 0f4f36c654
commit 82e3b40e7c

View File

@@ -1,5 +1,5 @@
import createError from 'http-errors';
import express, { Request, Response, NextFunction } from 'express';
import express from 'express';
import cors from 'cors';
import corsOptions from './config/cors-options';
import morgan from './helpers/morgan';
@@ -38,7 +38,7 @@ app.use('/', router);
webUIHandler(app);
// catch 404 and forward to error handler
app.use(function (req: Request, res: Response, next: NextFunction) {
app.use(function (req, res, next) {
next(createError(404));
});