1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-13 12:10:40 +00:00

change the globalInstance to read conf/app.conf

This commit is contained in:
Ming Deng
2020-11-25 20:13:23 +08:00
parent 0958174bc8
commit 00ed1c3733
2 changed files with 1 additions and 2 deletions

View File

@ -273,7 +273,6 @@ func (p *ControllerRegister) Include(cList ...ControllerInterface) {
for _, f := range a.Filters {
p.InsertFilter(f.Pattern, f.Pos, f.Filter, WithReturnOnOutput(f.ReturnOnOutput), WithResetParams(f.ResetParams))
}
p.addWithMethodParams(a.Router, c, a.MethodParams, strings.Join(a.AllowHTTPMethods, ",")+":"+a.Method)
}
}