init: web_hgdjc_server
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package router
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
const (
|
||||
// 与 sitemap 生成目录一致,进程工作目录为 app/。
|
||||
sitemapIndexFile = "../h5/template/pages/sitemap.xml"
|
||||
sitemapShardDir = "../h5/template/pages/sitemaps"
|
||||
)
|
||||
|
||||
func sitemapRouter(r *gin.Engine) {
|
||||
r.StaticFile("/sitemap.xml", sitemapIndexFile)
|
||||
r.Static("/sitemaps", sitemapShardDir)
|
||||
}
|
||||
Reference in New Issue
Block a user