1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-26 00:04:13 +00:00
add a function to delete default StaticPath
This commit is contained in:
astaxie 2013-06-25 17:21:19 +08:00
parent 9e41d93184
commit b04813e472

View File

@ -139,6 +139,11 @@ func (app *App) SetStaticPath(url string, path string) *App {
return app
}
func (app *App) DelStaticPath(url string) *App {
delete(StaticDir, url)
return app
}
func (app *App) ErrorLog(ctx *Context) {
BeeLogger.Printf("[ERR] host: '%s', request: '%s %s', proto: '%s', ua: '%s', remote: '%s'\n", ctx.Request.Host, ctx.Request.Method, ctx.Request.URL.Path, ctx.Request.Proto, ctx.Request.UserAgent(), ctx.Request.RemoteAddr)
}