fix: missing notification settings controller

This commit is contained in:
Marvin Zhang
2024-06-26 23:47:27 +08:00
parent 7bdce1af58
commit 8836206835

View File

@@ -75,8 +75,6 @@ func InitRoutes(app *gin.Engine) (err error) {
}...))
RegisterController(groups.AuthGroup, "/environments", NewControllerV2[models.EnvironmentV2]())
RegisterController(groups.AuthGroup, "/nodes", NewControllerV2[models.NodeV2]())
RegisterController(groups.AuthGroup, "/notifications/settings", NewControllerV2[models.NotificationSettingV2]())
//RegisterController(groups.AuthGroup, "/permissions", NewControllerV2[models.PermissionV2]())
RegisterController(groups.AuthGroup, "/projects", NewControllerV2[models.ProjectV2]([]Action{
{
Method: http.MethodGet,
@@ -84,7 +82,6 @@ func InitRoutes(app *gin.Engine) (err error) {
HandlerFunc: GetProjectList,
},
}...))
RegisterController(groups.AuthGroup, "/roles", NewControllerV2[models.RoleV2]())
RegisterController(groups.AuthGroup, "/schedules", NewControllerV2[models.ScheduleV2]([]Action{
{
Method: http.MethodPost,