RoadSign/pkg/sideload/metrics.go
2024-09-29 23:03:11 +08:00

15 lines
258 B
Go

package sideload
import (
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
"github.com/gofiber/fiber/v2"
)
func getTraffic(c *fiber.Ctx) error {
return c.JSON(navi.R.Metrics)
}
func getTraces(c *fiber.Ctx) error {
return c.JSON(navi.R.Metrics.Traces)
}