Last active
November 24, 2017 01:10
-
-
Save fengmk2/7f7df8c33cf36b8685a3196ca50656a8 to your computer and use it in GitHub Desktop.
egg router json
This file contains hidden or 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
[ | |
{ | |
"name": "home", | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/", | |
"regexp": "/^(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/home.js" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/hello", | |
"regexp": "/^\\/hello(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/hello.js" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/logger", | |
"regexp": "/^\\/logger(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/logger.js" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/protocol", | |
"regexp": "/^\\/protocol(?:\\/(?=$))?$/", | |
"stack": [ | |
"anonymous" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/user.json", | |
"regexp": "/^\\/user\\.json(?:\\/(?=$))?$/", | |
"stack": [ | |
"jsonp", | |
"anonymous" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/ip", | |
"regexp": "/^\\/ip(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/ip.js" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/class-controller", | |
"regexp": "/^\\/class-controller(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/foo.js#Foo.bar()" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/obj-controller", | |
"regexp": "/^\\/obj-controller(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/obj.js#bar()" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/subobj-controller", | |
"regexp": "/^\\/subobj-controller(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/obj.js#subObj.hello()" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/obj2-controller", | |
"regexp": "/^\\/obj2-controller(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/obj2.js#bar()" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"GET" | |
], | |
"paramNames": [], | |
"path": "/subobj2-controller", | |
"regexp": "/^\\/subobj2-controller(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/obj2.js#subObj.hello()" | |
] | |
}, | |
{ | |
"name": null, | |
"methods": [ | |
"HEAD", | |
"ACL", | |
"BIND", | |
"CHECKOUT", | |
"CONNECT", | |
"COPY", | |
"DELETE", | |
"GET", | |
"HEAD", | |
"LINK", | |
"LOCK", | |
"M-SEARCH", | |
"MERGE", | |
"MKACTIVITY", | |
"MKCALENDAR", | |
"MKCOL", | |
"MOVE", | |
"NOTIFY", | |
"OPTIONS", | |
"PATCH", | |
"POST", | |
"PROPFIND", | |
"PROPPATCH", | |
"PURGE", | |
"PUT", | |
"REBIND", | |
"REPORT", | |
"SEARCH", | |
"SUBSCRIBE", | |
"TRACE", | |
"UNBIND", | |
"UNLINK", | |
"UNLOCK", | |
"UNSUBSCRIBE" | |
], | |
"paramNames": [], | |
"path": "/all", | |
"regexp": "/^\\/all(?:\\/(?=$))?$/", | |
"stack": [ | |
"/Users/mk2/git/github.com/eggjs/egg/test/fixtures/apps/demo/app/controller/home.js" | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
stack 的 example 可以更新下