-
-
Save teresko/becd20a964e8aca75b52ec1685ee6f8a to your computer and use it in GitHub Desktop.
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
collection: | |
path: /{controller}{slash} | |
defaults: | |
action: collection | |
requirements: | |
id: "[1-9][0-9]*" | |
slash: "[/]{0,1}" | |
methods: [GET, POST] | |
resource: | |
path: /{controller}/{id}{slash} | |
defaults: | |
action: resource | |
requirements: | |
id: "[1-9][0-9]*" | |
slash: "[/]{0,1}" | |
methods: [GET, POST, DELETE, PATCH, PUT] | |
resource-action: | |
path: /{controller}/{id}/{action}{slash} | |
defaults: | |
action: resource | |
requirements: | |
id: "[1-9][0-9]*" | |
slash: "[/]{0,1}" | |
methods: [GET, POST, DELETE, PATCH, PUT] | |
concern-action: | |
path: /{controller}/{action}{slash} | |
defaults: | |
action: resource | |
requirements: | |
action: "[a-zA-Z-_]+" | |
slash: "[/]{0,1}" | |
methods: [GET, POST] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment