1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-15 04:51:02 +00:00

add to function & write docs

This commit is contained in:
astaxie
2013-04-14 23:20:38 +08:00
parent e96aa1aa3d
commit 764798d601
3 changed files with 132 additions and 10 deletions

View File

@ -221,6 +221,16 @@ func RouterHandler(path string, c http.Handler) *App {
return BeeApp
}
func SetViewsPath(path string) *App {
BeeApp.SetViewsPath(path)
return BeeApp
}
func SetStaticPath(url string, path string) *App {
StaticDir[url] = path
return BeeApp
}
func Filter(filter http.HandlerFunc) *App {
BeeApp.Filter(filter)
return BeeApp