Skip to content

Instantly share code, notes, and snippets.

@c9s
Created June 1, 2014 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c9s/bb5e5f4a3defd57099e0 to your computer and use it in GitHub Desktop.
Save c9s/bb5e5f4a3defd57099e0 to your computer and use it in GitHub Desktop.
{
"endpoint": 0,
"compare": 0,
"edges": [
{
"pattern": "\/",
"opcode": 0,
"slug": false,
"child": {
"endpoint": 0,
"compare": 0,
"edges": [
{
"pattern": "zoo",
"opcode": 0,
"slug": false,
"child": {
"endpoint": 1,
"compare": 0
}
},
{
"pattern": "foo",
"opcode": 0,
"slug": false,
"child": {
"endpoint": 1,
"compare": 0
}
},
{
"pattern": "bar",
"opcode": 0,
"slug": false,
"child": {
"endpoint": 1,
"compare": 0
}
},
{
"pattern": "post\/",
"opcode": 0,
"slug": false,
"child": {
"endpoint": 0,
"compare": 0,
"edges": [
{
"pattern": "get",
"opcode": 0,
"slug": false,
"child": {
"endpoint": 1,
"compare": 0,
"routes": [
{
"path": "\/post\/get",
"method": 2
}
]
}
},
{
"pattern": "post",
"opcode": 0,
"slug": false,
"child": {
"endpoint": 1,
"compare": 0,
"routes": [
{
"path": "\/post\/post",
"method": 4
}
]
}
}
]
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment