render templated homepage

This commit is contained in:
2026-05-31 19:05:39 -05:00
parent 16cb057670
commit 6958eea830
7 changed files with 155 additions and 19 deletions
+7 -2
View File
@@ -1,9 +1,14 @@
package public
import "github.com/gofiber/fiber/v2"
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 {
return ctx.Send([]byte("It's working! It's working!"))
ctx.Set("Content-Type", "text/html")
return views.HomePage().Render(ctx.Context(), ctx)
})
}