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

beego: improve the static file server

This commit is contained in:
astaxie
2014-08-04 15:31:27 +08:00
parent 1d36b19cab
commit 474a16a7a0
3 changed files with 14 additions and 5 deletions

View File

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