mirror of
https://github.com/astaxie/beego.git
synced 2025-07-06 04:10:19 +00:00
beego hook change the path & fix the migration bug
This commit is contained in:
5
beego.go
5
beego.go
@ -388,6 +388,9 @@ func initBeforeHttpRun() {
|
||||
Get("/docs", serverDocs)
|
||||
Get("/docs/*", serverDocs)
|
||||
}
|
||||
|
||||
//init mime
|
||||
AddAPPStartHook(initMime)
|
||||
}
|
||||
|
||||
// this function is for test package init
|
||||
@ -406,6 +409,4 @@ func TestBeegoInit(apppath string) {
|
||||
|
||||
func init() {
|
||||
hooks = make([]hookfunc, 0)
|
||||
//init mime
|
||||
AddAPPStartHook(initMime)
|
||||
}
|
||||
|
Reference in New Issue
Block a user