add logics
This commit is contained in:
@@ -9,10 +9,5 @@ type Controller struct {
|
||||
|
||||
// List
|
||||
func (c *Controller) List(ctx fiber.Ctx) error {
|
||||
resp, err := c.svc.List(ctx.Context())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return ctx.JSON(resp)
|
||||
return ctx.JSON(nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user