RoadSign/pkg/sideload/metadata.go

14 lines
266 B
Go
Raw Normal View History

2023-12-13 11:52:56 +00:00
package sideload
2023-12-10 04:30:34 +00:00
import (
2024-09-29 15:03:11 +00:00
roadsign "git.solsynth.dev/goatworks/roadsign/pkg"
2023-12-10 04:30:34 +00:00
"github.com/gofiber/fiber/v2"
)
2024-01-24 16:09:39 +00:00
func getMetadata(c *fiber.Ctx) error {
2023-12-10 04:43:47 +00:00
return c.Status(fiber.StatusOK).JSON(fiber.Map{
"server": "RoadSign",
"version": roadsign.AppVersion,
})
2023-12-10 04:30:34 +00:00
}