-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not allow public route definitions to set private params (#252)
- Loading branch information
1 parent
278ab5d
commit 1172d56
Showing
6 changed files
with
22 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
// @flow | ||
import route from './utils/define-route'; | ||
import resource from './utils/define-resource'; | ||
|
||
export { default as route } from './utils/define-route'; | ||
export { default as resource } from './utils/define-resource'; | ||
|
||
export default { | ||
route, | ||
resource | ||
}; |
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,5 +1,14 @@ | ||
// @flow | ||
import type Router from '../index'; | ||
import type Controller from '../../controller'; | ||
import type { Route$opts } from '../../route'; | ||
|
||
export type options = Route$opts & { router: Router }; | ||
export type Router$route = Route$opts & { | ||
router: Router; | ||
}; | ||
|
||
export type Router$resource = { | ||
path: string; | ||
router: Router; | ||
controllers: Map<string, Controller>; | ||
}; |
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
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