diff --git a/README.md b/README.md index 149679d0..a61d4ecc 100644 --- a/README.md +++ b/README.md @@ -38,4 +38,5 @@ beego is licensed under the Apache Licence, Version 2.0 ## Use case - Displaying API documentation: [gowalker](https://github.com/Unknwon/gowalker) +- seocms: [seocms](https://github.com/chinakr/seocms) - CMS: [toropress](https://github.com/insionng/toropress) diff --git a/beego.go b/beego.go index 8e1528eb..c2c7ce6f 100644 --- a/beego.go +++ b/beego.go @@ -182,6 +182,11 @@ func SetStaticPath(url string, path string) *App { return BeeApp } +func DelStaticPath(url string) *App { + delete(StaticDir, url) + return BeeApp +} + func Filter(filter http.HandlerFunc) *App { BeeApp.Filter(filter) return BeeApp