Files
cms/web/public/routes.go
T
2026-05-31 19:05:39 -05:00

15 lines
282 B
Go

package public
import (
"github.com/Henelik/cms/web/public/views"
"github.com/gofiber/fiber/v2"
)
func RegisterRoutes(app *fiber.App) {
app.Get("/", func(ctx *fiber.Ctx) error {
ctx.Set("Content-Type", "text/html")
return views.HomePage().Render(ctx.Context(), ctx)
})
}