forked from nestjs/nest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(core): allow Array in request mapping decorator
This feature was requested in the issue nestjs#1343. When routing, besides using a single string, you can now use an array of strings in the Post, Get, ... decorators.
- Loading branch information
Elyes BA
committed
Jan 5, 2019
1 parent
2a5e22e
commit ea700d8
Showing
7 changed files
with
232 additions
and
50 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
2 changes: 1 addition & 1 deletion
2
packages/common/interfaces/request-mapping-metadata.interface.ts
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { RequestMethod } from '../enums/request-method.enum'; | ||
|
||
export interface RequestMappingMetadata { | ||
path?: string; | ||
path?: string | string[]; | ||
method?: RequestMethod; | ||
} |
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
Oops, something went wrong.