mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 12:50:55 +00:00
add static global function & add seocms example
This commit is contained in:
parent
b04813e472
commit
1521842d7a
@ -38,4 +38,5 @@ beego is licensed under the Apache Licence, Version 2.0
|
|||||||
## Use case
|
## Use case
|
||||||
|
|
||||||
- Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker)
|
- Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker)
|
||||||
|
- seocms: [seocms](https://github.com/chinakr/seocms)
|
||||||
- CMS: [toropress](https://github.com/insionng/toropress)
|
- CMS: [toropress](https://github.com/insionng/toropress)
|
||||||
|
5
beego.go
5
beego.go
@ -182,6 +182,11 @@ func SetStaticPath(url string, path string) *App {
|
|||||||
return BeeApp
|
return BeeApp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func DelStaticPath(url string) *App {
|
||||||
|
delete(StaticDir, url)
|
||||||
|
return BeeApp
|
||||||
|
}
|
||||||
|
|
||||||
func Filter(filter http.HandlerFunc) *App {
|
func Filter(filter http.HandlerFunc) *App {
|
||||||
BeeApp.Filter(filter)
|
BeeApp.Filter(filter)
|
||||||
return BeeApp
|
return BeeApp
|
||||||
|
Loading…
Reference in New Issue
Block a user