15 lines
282 B
Go
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)
|
|
})
|
|
}
|