16 lines
432 B
Go
16 lines
432 B
Go
// Package pages THIS FILE IS GENERATED. DO NOT EDIT.
|
|
package pages
|
|
|
|
import "github.com/labstack/echo/v4"
|
|
import "github.com/maddalax/htmgo/framework/h"
|
|
|
|
func RegisterPages(f *echo.Echo) {
|
|
f.GET("/docs", func(ctx echo.Context) error {
|
|
cc := ctx.(*h.RequestContext)
|
|
return h.HtmlView(ctx, DocsPage(cc))
|
|
})
|
|
f.GET("/", func(ctx echo.Context) error {
|
|
cc := ctx.(*h.RequestContext)
|
|
return h.HtmlView(ctx, IndexPage(cc))
|
|
})
|
|
}
|