mirror of
https://github.com/datarhei/core.git
synced 2025-10-04 15:42:57 +08:00
Add the resource limits to the metrics
This commit is contained in:
@@ -91,11 +91,9 @@ func NewAPI(config APIConfig) (API, error) {
|
||||
}))
|
||||
a.router.Logger.SetOutput(httplog.NewWrapper(a.logger))
|
||||
|
||||
swagHandler := echoSwagger.EchoWrapHandler(echoSwagger.InstanceName("ClusterAPI"))
|
||||
|
||||
// Swagger API documentation router group
|
||||
doc := a.router.Group("/v1/swagger/*")
|
||||
doc.GET("", swagHandler)
|
||||
doc.GET("", echoSwagger.EchoWrapHandler(echoSwagger.InstanceName("ClusterAPI")))
|
||||
|
||||
a.router.POST("/v1/server", a.AddServer)
|
||||
a.router.DELETE("/v1/server/:id", a.RemoveServer)
|
||||
|
Reference in New Issue
Block a user