d6daf1dce6
- 新增站点自定义(标题/Favicon/登录页描述) - 新增在线自定义 CSS/JS 编辑器 - 扩展备份迁移支持面板配置导出导入 - 默认账号改为 admin/1234 - 设置按钮改为橙色更醒目 - 修复登录页误报"登录过期"弹窗 - 修复 i18n 双重 apps 块导致翻译失效 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
482 B
Go
20 lines
482 B
Go
package system
|
|
|
|
import (
|
|
"sun-panel/api/api_v1"
|
|
"sun-panel/api/api_v1/middleware"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitSiteCustomizeRouter(router *gin.RouterGroup) {
|
|
api := api_v1.ApiGroupApp.ApiSystem.SiteCustomizeApi
|
|
|
|
// 无需登录(登录页读取)
|
|
router.POST("/system/siteCustomize/get", api.Get)
|
|
|
|
// 管理员才能修改
|
|
rAdmin := router.Group("", middleware.LoginInterceptor, middleware.AdminInterceptor)
|
|
rAdmin.POST("/system/siteCustomize/set", api.Set)
|
|
}
|