✨ Capture traces
This commit is contained in:
10
pkg/sideload/metrics.go
Normal file
10
pkg/sideload/metrics.go
Normal file
@ -0,0 +1,10 @@
|
||||
package sideload
|
||||
|
||||
import (
|
||||
"code.smartsheep.studio/goatworks/roadsign/pkg/navi"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
func getTraces(c *fiber.Ctx) error {
|
||||
return c.JSON(navi.R.Traces)
|
||||
}
|
@ -53,6 +53,7 @@ func InitSideload() *fiber.App {
|
||||
cgi := app.Group("/cgi").Name("CGI")
|
||||
{
|
||||
cgi.Get("/metadata", getMetadata)
|
||||
cgi.Get("/traces", getTraces)
|
||||
cgi.Get("/statistics", getStatistics)
|
||||
cgi.Get("/sites", getRegions)
|
||||
cgi.Get("/sites/cfg/:id", getRegionConfig)
|
||||
|
Reference in New Issue
Block a user