Skip to content

Commit

Permalink
fix(dandi-contrib/mvc-express): update to work with all caps HttpMeth…
Browse files Browse the repository at this point in the history
…od values
  • Loading branch information
DanielSchaffer committed Jun 1, 2020
1 parent afc7cf4 commit 270bc7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ export class ExpressMvcRouteMapper implements RouteMapper {
}

private bindRoute(route: Route): void {
this.app[route.httpMethod](route.path, this.routeExecutor.execRoute.bind(this.routeExecutor, route))
this.app[route.httpMethod.toLowerCase()](route.path, this.routeExecutor.execRoute.bind(this.routeExecutor, route))
}
}

0 comments on commit 270bc7c

Please sign in to comment.