feat: model and model version api removes auth
@@ -153,18 +153,18 @@ func Init(cfg *config.Config, logDir string, service service.Service, enforcer *
s.GET("", h.GetSchedulers)
// Model
- s.POST(":id/models", h.CreateModel)
- s.DELETE(":id/models/:model_id", h.DestroyModel)
- s.PATCH(":id/models/:model_id", h.UpdateModel)
- s.GET(":id/models/:model_id", h.GetModel)
- s.GET(":id/models", h.GetModels)
+ apiv1.POST("/schedulers/:id/models", h.CreateModel)
+ apiv1.DELETE("/schedulers/:id/models/:model_id", h.DestroyModel)
+ apiv1.PATCH("/schedulers/:id/models/:model_id", h.UpdateModel)
+ apiv1.GET("/schedulers/:id/models/:model_id", h.GetModel)
+ apiv1.GET("/schedulers/:id/models", h.GetModels)
// Model Version
- s.POST(":id/models/:model_id/versions", h.CreateModelVersion)
- s.DELETE(":id/models/:model_id/versions/:version_id", h.DestroyModelVersion)
- s.PATCH(":id/models/:model_id/versions/:version_id", h.UpdateModelVersion)
- s.GET(":id/models/:model_id/versions/:version_id", h.GetModelVersion)
- s.GET(":id/models/:model_id/versions", h.GetModelVersions)
+ apiv1.POST("/schedulers/:id/models/:model_id/versions", h.CreateModelVersion)
+ apiv1.DELETE("/schedulers/:id/models/:model_id/versions/:version_id", h.DestroyModelVersion)
+ apiv1.PATCH("/schedulers/:id/models/:model_id/versions/:version_id", h.UpdateModelVersion)
+ apiv1.GET("/schedulers/:id/models/:model_id/versions/:version_id", h.GetModelVersion)
+ apiv1.GET("/schedulers/:id/models/:model_id/versions", h.GetModelVersions)
// Application
cs := apiv1.Group("/applications", jwt.MiddlewareFunc(), rbac)
