miniauth/pkg/web/web.go
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)
}