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:
10
beego.go
10
beego.go
@ -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
|
||||
|
Reference in New Issue
Block a user