2024-09-11 00:52:18 +00:00
|
|
|
// Package pages THIS FILE IS GENERATED. DO NOT EDIT.
|
|
|
|
|
package pages
|
|
|
|
|
|
2024-09-13 17:13:01 +00:00
|
|
|
import (
|
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
|
|
"github.com/maddalax/mhtml/framework/h"
|
|
|
|
|
)
|
2024-09-11 00:52:18 +00:00
|
|
|
|
|
|
|
|
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
|
|
|
}
|