Spaces:
Configuration error
Configuration error
Download space/controller/options/option_category_controller.go from lifedebugger/api-qobiltu-dev: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/space/controller/options/option_category_controller.go
- Command line
-
hf download hf://spaces/lifedebugger/api-qobiltu-dev/space/controller/options/option_category_controller.go
-
curl -L -o option_category_controller.go https://huggingface.co/spaces/lifedebugger/api-qobiltu-dev/resolve/main/space/controller/options/option_category_controller.go
503 Bytes
| package options | |
| import ( | |
| "api.qobiltu.id/controller" | |
| "api.qobiltu.id/models" | |
| "api.qobiltu.id/services" | |
| "github.com/gin-gonic/gin" | |
| ) | |
| func AddOptions(c *gin.Context) { | |
| options := services.OptionService{} | |
| addOptionController := controller.Controller[[]models.OptionsRequest, []models.OptionsRequest, models.OptionsResponse]{ | |
| Service: &options.Service, | |
| } | |
| addOptionController.RequestJSON(c, func() { | |
| options.Constructor = addOptionController.Request | |
| options.Create() | |
| }) | |
| } | |