feat: 首次引导安装开始和完成的触发接口

This commit is contained in:
TsMask
2024-04-19 20:00:59 +08:00
parent 2b8b305484
commit 6b4ad6d59d
3 changed files with 128 additions and 0 deletions

View File

@@ -25,6 +25,12 @@ func Setup(router *gin.Engine) {
// 系统可暴露的配置信息
indexGroup.GET("/sys-conf", controller.NewCommont.SysConfig)
// 首次引导安装
guideGroup := router.Group("/guide")
{
guideGroup.POST("", controller.NewLaunch.GuideStart)
guideGroup.PUT("", middleware.PreAuthorize(nil), controller.NewLaunch.GuideDone)
}
// 验证码操作处理
indexGroup.GET("/captchaImage",