Skip to content

Instantly share code, notes, and snippets.

@lmt-swallow
Created December 31, 2013 13:03
Show Gist options
  • Save lmt-swallow/8196480 to your computer and use it in GitHub Desktop.
Save lmt-swallow/8196480 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",
"id":"[0-9]+",
"password":"[a-zA-Z0-9]+"
},{
"target":"GET",
"[all]":"-s"
}]
}
{
"location":"/fuga/(.*)/piyo",
"allow-method":["GET","POST"],
"rules":[
{
"target":"REGEX",
"$1":"[a-zA-Z0-9\\-]+a"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment