1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-25 22:54:13 +00:00

Merge pull request #9 from huacnlee/fix_filter_prefix_path_call_bug

Fix wrong method name call for FilterPrefixPath.
This commit is contained in:
astaxie 2013-02-28 22:12:24 -08:00
commit a3a0cf2ad2

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 {
app.Handlers.FilterParam(path, filter)
app.Handlers.FilterPrefixPath(path, filter)
return app
}
@ -205,7 +205,7 @@ func FilterParam(param string, filter http.HandlerFunc) *App {
}
func FilterPrefixPath(path string, filter http.HandlerFunc) *App {
BeeApp.FilterParam(path, filter)
BeeApp.FilterPrefixPath(path, filter)
return BeeApp
}