Skip to content

Instantly share code, notes, and snippets.

@lmt-swallow
Created January 1, 2014 02:09
Show Gist options
  • Save lmt-swallow/8204214 to your computer and use it in GitHub Desktop.
Save lmt-swallow/8204214 to your computer and use it in GitHub Desktop.
[
{
"location": "all",
"allow-method": [
"GET"
]
},
{
"location": "/",
"allow-method": [
"GET"
]
},
{
"location": "/hoge",
"allow-method": [
"POST"
],
"rules": [
{
"target": "POST",
"params":[
{"id": "[0-9]+"},
{"password": "[a-zA-Z0-9]+"}
]
},
{
"target": "GET",
"params":[
{"[all]": "-s"}
]
}
]
},
{
"location": "/fuga/(.*)/piyo",
"allow-method": [
"GET",
"POST"
],
"rules": [
{
"target": "REGEX",
"params":[
{"$1": "[a-zA-Z0-9\\-]+a"}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment