File size: 491 Bytes
e762600
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package options

import (
	"github.com/gin-gonic/gin"
	"godp.abdanhafidz.com/controller"
	"godp.abdanhafidz.com/models"
	"godp.abdanhafidz.com/services"
)

func List(c *gin.Context) {
	options := services.OptionValueService{}
	optionValueController := controller.Controller[any, models.OptionCategory, models.Options]{
		Service: &options.Service,
	}
	slug := c.Param("slug")
	options.Constructor.OptionSlug = slug
	options.Retrieve()
	optionValueController.Response(c)
}