mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 13:20:56 +00:00
fix the init mime
This commit is contained in:
parent
24489df63d
commit
76db5cded4
6
beego.go
6
beego.go
@ -364,6 +364,9 @@ func initBeforeHttpRun() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//init mime
|
||||||
|
AddAPPStartHook(initMime)
|
||||||
|
|
||||||
// do hooks function
|
// do hooks function
|
||||||
for _, hk := range hooks {
|
for _, hk := range hooks {
|
||||||
err := hk()
|
err := hk()
|
||||||
@ -409,9 +412,6 @@ func initBeforeHttpRun() {
|
|||||||
Get("/docs", serverDocs)
|
Get("/docs", serverDocs)
|
||||||
Get("/docs/*", serverDocs)
|
Get("/docs/*", serverDocs)
|
||||||
}
|
}
|
||||||
|
|
||||||
//init mime
|
|
||||||
AddAPPStartHook(initMime)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// this function is for test package init
|
// this function is for test package init
|
||||||
|
Loading…
Reference in New Issue
Block a user