1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:20:54 +00:00

Fix wrong method name call for FilterPrefixPath.

This commit is contained in:
Jason Lee 2013-03-01 13:32:23 +08:00
parent c6d4eeceaa
commit 53f917c99c

View File

@ -167,7 +167,7 @@ func (app *App) FilterParam(param string, filter http.HandlerFunc) *App {
} }
func (app *App) FilterPrefixPath(path string, filter http.HandlerFunc) *App { func (app *App) FilterPrefixPath(path string, filter http.HandlerFunc) *App {
app.Handlers.FilterParam(path, filter) app.Handlers.FilterPrefixPath(path, filter)
return app return app
} }
@ -205,7 +205,7 @@ func FilterParam(param string, filter http.HandlerFunc) *App {
} }
func FilterPrefixPath(path string, filter http.HandlerFunc) *App { func FilterPrefixPath(path string, filter http.HandlerFunc) *App {
BeeApp.FilterParam(path, filter) BeeApp.FilterPrefixPath(path, filter)
return BeeApp return BeeApp
} }