Add middleware/index.ts and remove default exports

Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
David Mehren 2020-04-13 12:18:59 +02:00
parent 6de6aa1d89
commit e5961336b7
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
5 changed files with 10 additions and 4 deletions

View file

@ -2,7 +2,7 @@ import { logger } from '../../logger'
import { errors } from '../../errors'
import { NextFunction, Request, Response } from 'express'
export default function checkURI (req: Request, res: Response, next: NextFunction) {
export function checkURI (req: Request, res: Response, next: NextFunction): void {
try {
decodeURIComponent(req.path)
next()