act测试

This commit is contained in:
张超
2025-06-23 17:04:31 +08:00
parent 8241b8c61f
commit ab66b9e39d
4 changed files with 98 additions and 136 deletions

12
main.go
View File

@@ -91,18 +91,6 @@ func main() {
router.Run(":" + conf.Server.Port)
}
// 自定义模板渲染器
// func createTemplateRenderer(currentTheme string) gin.HTMLRender {
// return gin.HTMLTemplates{
// Root: "web/templates",
// Extension: ".html",
// FuncMap: template.FuncMap{
// "safe": func(s string) template.HTML { return template.HTML(s) },
// },
// Directory: "web/themes/" + currentTheme,
// }
// }
// 数据库中间件
func databaseMiddleware(db *gorm.DB) gin.HandlerFunc {
return func(c *gin.Context) {