1
0
mirror of https://github.com/astaxie/beego.git synced 2025-09-16 10:02:10 +00:00

beego: swagger EnableDocs

This commit is contained in:
astaxie
2014-06-16 16:05:15 +08:00
parent 4990d88861
commit cff632f553
4 changed files with 179 additions and 0 deletions

View File

@@ -383,6 +383,9 @@ func initBeforeHttpRun() {
for u, _ := range StaticDir {
Get(u+"/*", serverStaticRouter)
}
if EnableDocs {
Get("/docs/*", serverDocs)
}
}
// this function is for test package init