mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
http: use Gin web framework to reduce API boilerplate
This commit is contained in:
@@ -39,7 +39,7 @@ func New(reporter *reporter.Reporter, config Configuration, dependencies Depende
|
||||
}
|
||||
|
||||
c.d.HTTP.AddHandler("/", netHTTP.HandlerFunc(c.assetsHandlerFunc))
|
||||
c.d.HTTP.AddHandler("/api/v0/docs/", netHTTP.HandlerFunc(c.docsHandlerFunc))
|
||||
c.d.HTTP.GinRouter.GET("/api/v0/docs/:name", c.docsHandlerFunc)
|
||||
|
||||
return &c, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user