Skip to content

Commit

Permalink
Fix test coverage by replacing default value for controller middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokt33r committed Mar 25, 2019
1 parent 8405897 commit b7a6658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorators/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function setControllerMeta(

export function controller(
path: string,
middleware: RequestHandler[] | Middleware = [],
middleware: RequestHandler[] | Middleware = {},
routerOptions: RouterOptions = {}
) {
if (Array.isArray(middleware)) {
Expand Down

0 comments on commit b7a6658

Please sign in to comment.