Spaces:
Configuration error
Configuration error
Download controller/auth/auth_register_controller.go from lifedebugger/api-qobiltu-dev: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/controller/auth/auth_register_controller.go
- Command line
-
hf download hf://spaces/lifedebugger/api-qobiltu-dev/controller/auth/auth_register_controller.go
-
curl -L -o auth_register_controller.go https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/controller/auth/auth_register_controller.go
602 Bytes
| package auth | |
| import ( | |
| "api.qobiltu.id/controller" | |
| "api.qobiltu.id/models" | |
| "api.qobiltu.id/services" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| 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() | |
| }) | |
| } | |