From 1521842d7a51882c678444dc5b490b3005a441c9 Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 25 Jun 2013 18:49:08 +0800 Subject: [PATCH] add static global function & add seocms example --- README.md | 1 + beego.go | 5 +++++ 2 files changed, 6 insertions(+) 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