(e *gin.Engine)
| 45 | } |
| 46 | |
| 47 | func (c *Controller) RegisterTo(e *gin.Engine) { |
| 48 | adminRoutes := e.Group("/v1/controllers") |
| 49 | adminRoutes.Use(AdminPermissionVerificationMiddleware()) |
| 50 | |
| 51 | adminRoutes.GET("/:lcuuid/", getController) |
| 52 | adminRoutes.GET("/", getControllers) |
| 53 | adminRoutes.PATCH("/:lcuuid/", updateController(c.cc, c.cfg)) |
| 54 | adminRoutes.DELETE("/:lcuuid/", deleteController(c.cc, c.cfg)) |
| 55 | } |
| 56 | |
| 57 | func getController(c *gin.Context) { |
| 58 | args := make(map[string]string) |
nothing calls this directly
no test coverage detected