23 lines
346 B
Go
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)
|
|
}
|