嵌入与邮箱

This commit is contained in:
ryan
2026-06-08 14:10:56 +08:00
parent 62bd5d09d4
commit db68a130ce
26 changed files with 6089 additions and 129 deletions
+4
View File
@@ -200,6 +200,7 @@ func Serve() {
// System Config
adminRouter.POST("/system-configs", system_config.CreateSystemConfig)
adminRouter.GET("/system-configs", system_config.ListSystemConfigs)
adminRouter.POST("/system-configs/smtp/test", system_config.TestSMTP)
systemConfigRouter := adminRouter.Group("/system-configs/:key")
{
@@ -218,6 +219,9 @@ func Serve() {
}
}
// 注册前端静态路由(当启用 embed_frontend 编译标签时)
registerFrontend(r)
srv := &http.Server{
Addr: config.Config.App.Addr,
Handler: r,