Skip to content

Commit

Permalink
Merge pull request #982 from robbkidd/add-302-found-redirect
Browse files Browse the repository at this point in the history
feat: Add ApiResponse wrapper for 302 FOUND
  • Loading branch information
kamilmysliwiec authored Nov 6, 2020
2 parents 4447010 + a0c4eb4 commit 8334f37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/decorators/api-response.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ export const ApiMovedPermanentlyResponse = (options: ApiResponseOptions = {}) =>
status: HttpStatus.MOVED_PERMANENTLY
});

export const ApiFoundResponse = (options: ApiResponseOptions = {}) =>
ApiResponse({
...options,
status: HttpStatus.FOUND
});

export const ApiBadRequestResponse = (options: ApiResponseOptions = {}) =>
ApiResponse({
...options,
Expand Down

0 comments on commit 8334f37

Please sign in to comment.