1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-06 04:40:20 +00:00

beego: improve performance

This commit is contained in:
astaxie
2014-06-11 01:11:32 +08:00
parent 675643c68d
commit 6809c97611
3 changed files with 51 additions and 45 deletions

View File

@ -379,6 +379,10 @@ func initBeforeHttpRun() {
middleware.VERSION = VERSION
middleware.AppName = AppName
middleware.RegisterErrorHandler()
for u, _ := range StaticDir {
Get(u, serverStaticRouter)
}
}
// this function is for test package init