Spaces:
Configuration error
Configuration error
Download controller/auth/auth_profile_controller.go from lifedebugger/api-qobiltu-dev: direct link, hf CLI and curl.
- Browser
- Download file 589 Bytes
-
https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/controller/auth/auth_profile_controller.go
- Command line
-
hf download hf://spaces/lifedebugger/api-qobiltu-dev/controller/auth/auth_profile_controller.go
-
curl -L -o auth_profile_controller.go https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/controller/auth/auth_profile_controller.go
589 Bytes
| package user | |
| import ( | |
| "api.qobiltu.id/controller" | |
| "api.qobiltu.id/models" | |
| "api.qobiltu.id/services" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| func Profile(c *gin.Context) { | |
| userProfile := services.UserProfileService{} | |
| userProfileController := controller.Controller[any, models.AccountDetails, models.AccountDetails]{ | |
| Service: &userProfile.Service, | |
| } | |
| userProfileController.HeaderParse(c, func() { | |
| userProfileController.Service.Constructor.AccountID = uint(userProfileController.AccountData.UserID) | |
| userProfile.Retrieve() | |
| userProfileController.Response(c) | |
| }, | |
| ) | |
| } | |