This repository has been archived on 2025-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
miniauthold/pkg/web/web.go
kekskurse 107d32586e
Some checks failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/playwright Pipeline failed
ci/woodpecker/push/deplyoment unknown status
register page
2025-03-14 00:41:32 +01:00

23 lines
346 B
Go

package web
import (
"net/http"
"github.com/gin-gonic/gin"
)
type Web struct{}
func NewWeb() Web {
w := Web{}
return w
}
func (w Web) RegisterRoutes(routing *gin.RouterGroup) error {
routing.GET("/register", w.GetRegisterPage)
return nil
}
func (w Web) GetRegisterPage(c *gin.Context) {
c.HTML(http.StatusOK, "register.html", nil)
}