-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ATO-1291: Update controller to support request objects
Uses new validation in controller, which enables support for request objects. Also throws MethodNotAllowedError for non GET requests
- Loading branch information
1 parent
e30763f
commit d28bb17
Showing
4 changed files
with
1,256 additions
and
466 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class MethodNotAllowedError extends Error { | ||
constructor(httpMethod: string) { | ||
super(`Method "${httpMethod} not allowed"`); | ||
} | ||
} |
Oops, something went wrong.