Spaces:
Runtime error
Runtime error
File size: 632 Bytes
131eba4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | package auth
import (
"github.com/gin-gonic/gin"
"pweb-api.abdanhafidz.com/controller"
"pweb-api.abdanhafidz.com/models"
"pweb-api.abdanhafidz.com/services"
)
func Register(c *gin.Context) {
register := services.RegisterService{}
registerController := controller.Controller[models.RegisterRequest, models.Account, models.Account]{
Service: ®ister.Service,
}
registerController.RequestJSON(c, func() {
registerController.Service.Constructor.Password = registerController.Request.Password
registerController.Service.Constructor.Email = registerController.Request.Email
register.Create()
})
}
|