1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 02:10:18 +00:00

beego: update the router rule for *

* not match the empty route
This commit is contained in:
astaxie
2014-06-21 11:44:24 +08:00
parent 469f283b68
commit af4f153830
4 changed files with 4 additions and 7 deletions

View File

@ -381,9 +381,11 @@ func initBeforeHttpRun() {
middleware.RegisterErrorHandler()
for u, _ := range StaticDir {
Get(u, serverStaticRouter)
Get(u+"/*", serverStaticRouter)
}
if EnableDocs {
Get("/docs", serverDocs)
Get("/docs/*", serverDocs)
}
}