RoadSign/pkg/sideload/metrics.go

15 lines
258 B
Go
Raw Normal View History

2024-01-25 06:46:43 +00:00
package sideload
import (
2024-09-29 15:03:11 +00:00
"git.solsynth.dev/goatworks/roadsign/pkg/navi"
2024-01-25 06:46:43 +00:00
"github.com/gofiber/fiber/v2"
)
2024-01-31 05:17:52 +00:00
func getTraffic(c *fiber.Ctx) error {
return c.JSON(navi.R.Metrics)
}
2024-01-25 06:46:43 +00:00
func getTraces(c *fiber.Ctx) error {
2024-01-31 05:17:52 +00:00
return c.JSON(navi.R.Metrics.Traces)
}