log-manager/routers/router/router.go

21 lines
348 B
Go

package router
import (
"jannex/log-manager/routers/router/api/v1/log"
"github.com/gofiber/fiber/v2"
)
func SetupRoutes(app *fiber.App) {
v1 := app.Group("/v1")
l := v1.Group("/log")
l.Post("/", log.AddLog)
l.Get("/types", log.GetAvailableLogTypes)
ls := v1.Group("/logs")
ls.Get("/:type", log.GetLog)
app.Static("/", "./public/")
}