feat: 注释掉静态文件服务和模板加载

This commit is contained in:
MatrixSeven
2025-08-01 20:13:52 +08:00
parent dbfdbf0116
commit e25a23bd30
14 changed files with 4 additions and 5649 deletions

View File

@@ -42,9 +42,9 @@ func main() {
MaxAge: 300,
}))
// 静态文件服务
fileServer := http.FileServer(http.Dir("./web/static/"))
r.Handle("/static/*", http.StripPrefix("/static", fileServer))
// // 静态文件服务
// fileServer := http.FileServer(http.Dir("./web/static/"))
// r.Handle("/static/*", http.StripPrefix("/static", fileServer))
// 路由定义
r.Get("/", h.IndexHandler)