From 832ecaaed0529a2470b2a59c30b7f30ad92cf35c Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期五, 22 十一月 2019 15:08:59 +0800 Subject: [PATCH] update license --- router/router.go | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/router/router.go b/router/router.go index dced050..bb66024 100644 --- a/router/router.go +++ b/router/router.go @@ -44,6 +44,16 @@ clusterController := new(controllers.ClusterController) sysRoleController := new(controllers.RoleController) ptzController := new(controllers.PanTiltZoomController) + licenseController := new(controllers.LicenseController) + + urlPrefix := "/data/api-v" // wp 娣诲姞 璺緞 鍓嶇紑 + + licenseApi :=r.Group(urlPrefix+"/license") + { + licenseApi.POST("/getRegisterCode", licenseController.GetRegisterCode) + licenseApi.POST("/save", licenseController.Save) + licenseApi.GET("/show", licenseController.Show) + } sysApi := r.Group("/data/api-u/sys") { @@ -68,8 +78,6 @@ userApi.POST("/saveAuth", userController.SaveAuth) userApi.POST("/updatePwd", userController.UpdatePwd) } - - urlPrefix := "/data/api-v" // wp 娣诲姞 璺緞 鍓嶇紑 //鍖哄煙绠$悊 area := r.Group(urlPrefix + "/area") -- Gitblit v1.8.0