1521842d by astaxie

add static global function & add seocms example

1 parent b04813e4
...@@ -38,4 +38,5 @@ beego is licensed under the Apache Licence, Version 2.0 ...@@ -38,4 +38,5 @@ beego is licensed under the Apache Licence, Version 2.0
38 ## Use case 38 ## Use case
39 39
40 - Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker) 40 - Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker)
41 - seocms: [seocms](https://github.com/chinakr/seocms)
41 - CMS: [toropress](https://github.com/insionng/toropress) 42 - CMS: [toropress](https://github.com/insionng/toropress)
......
...@@ -182,6 +182,11 @@ func SetStaticPath(url string, path string) *App { ...@@ -182,6 +182,11 @@ func SetStaticPath(url string, path string) *App {
182 return BeeApp 182 return BeeApp
183 } 183 }
184 184
185 func DelStaticPath(url string) *App {
186 delete(StaticDir, url)
187 return BeeApp
188 }
189
185 func Filter(filter http.HandlerFunc) *App { 190 func Filter(filter http.HandlerFunc) *App {
186 BeeApp.Filter(filter) 191 BeeApp.Filter(filter)
187 return BeeApp 192 return BeeApp
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!