LittleSheep
7b544f370d
All checks were successful
release-nightly / build-docker (push) Successful in 1m52s
15 lines
264 B
Go
15 lines
264 B
Go
package sideload
|
|
|
|
import (
|
|
"code.smartsheep.studio/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)
|
|
}
|