This commit is contained in:
张超
2025-05-27 19:01:05 +08:00
parent f02495cc7a
commit 5ffc64e1dd
16 changed files with 512 additions and 123 deletions

View File

@@ -18,7 +18,6 @@ import (
// @title 个人博客系统API
// @version 1.0
// @description 基于Go语言的可定制主题博客系统
const templatePath = "./templates/*"
func main() {
@@ -60,7 +59,6 @@ func main() {
gin.SetMode(gin.ReleaseMode)
}
router := gin.Default()
router.LoadHTMLGlob(templatePath)
themeManager.RegisterStaticRoutes(router)
// 6. 注册中间件