mirror of
https://github.com/MatrixSeven/file-transfer-go.git
synced 2026-02-04 03:25:03 +08:00
feat: 注释掉静态文件服务和模板加载
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user