console: display running version

This commit is contained in:
Vincent Bernat
2022-07-21 12:30:06 +02:00
parent 7d8185a405
commit 927a9f3cfd
7 changed files with 85 additions and 21 deletions

View File

@@ -83,6 +83,7 @@ func (c *Component) Start() error {
c.d.HTTP.AddHandler("/", netHTTP.HandlerFunc(c.assetsHandlerFunc))
endpoint := c.d.HTTP.GinRouter.Group("/api/v0/console", c.d.Auth.UserAuthentication())
endpoint.GET("/configuration", c.configHandlerFunc)
endpoint.GET("/docs/:name", c.docsHandlerFunc)
endpoint.GET("/widget/flow-last", c.widgetFlowLastHandlerFunc)
endpoint.GET("/widget/flow-rate", c.widgetFlowRateHandlerFunc)