act测试
This commit is contained in:
12
main.go
12
main.go
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user