Add Category
This commit is contained in:
parent
82f72fc3eb
commit
4cade376b9
@ -138,10 +138,12 @@ func (h *CategoryHandler) GetCategory(c *gin.Context) {
|
||||
|
||||
func (h *CategoryHandler) ListCategories(c *gin.Context) {
|
||||
ctx := c.Request.Context()
|
||||
contextInfo := appcontext.FromGinContext(ctx)
|
||||
|
||||
req := &contract.ListCategoriesRequest{
|
||||
Page: 1,
|
||||
Limit: 10,
|
||||
OrganizationID: &contextInfo.OrganizationID,
|
||||
}
|
||||
|
||||
// Parse query parameters
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user