mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-16 07:51:14 +00:00
feat: add StatMiddleware to main application
This commit is contained in:
2
main.go
2
main.go
@@ -31,6 +31,8 @@ func main() {
|
|||||||
|
|
||||||
app.Use(middleware.FrontendMiddleware)
|
app.Use(middleware.FrontendMiddleware)
|
||||||
|
|
||||||
|
app.Use(middleware.StatMiddleware)
|
||||||
|
|
||||||
app.Get("/metrics", adaptor.HTTPHandler(prom.Handler()))
|
app.Get("/metrics", adaptor.HTTPHandler(prom.Handler()))
|
||||||
|
|
||||||
apiG := app.Group("/api")
|
apiG := app.Group("/api")
|
||||||
|
|||||||
Reference in New Issue
Block a user