htmgo/starter-template/pages/generated.go

21 lines
523 B
Go
Raw Normal View History

2024-09-11 00:52:18 +00:00
// Package pages THIS FILE IS GENERATED. DO NOT EDIT.
package pages
import "github.com/gofiber/fiber/v2"
import "mhtml/h"
func RegisterPages(f *fiber.App) {
f.Get("/", func(ctx *fiber.Ctx) error {
return h.HtmlView(ctx, IndexPage(ctx))
})
f.Get("/news/:id", func(ctx *fiber.Ctx) error {
return h.HtmlView(ctx, Test(ctx))
})
f.Get("/news", func(ctx *fiber.Ctx) error {
return h.HtmlView(ctx, ListPage(ctx))
})
2024-09-11 17:31:40 +00:00
f.Get("/patients", func(ctx *fiber.Ctx) error {
return h.HtmlView(ctx, PatientsIndex(ctx))
})
2024-09-11 00:52:18 +00:00
}