Include assigned branches on GET user by ID.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
guwandykandCursor committed 2026-08-18 14:12:47 +05:00
1 parent 6191b7536c
commit 9c07439089
2 files changed
+24 -22

No files matched your search

+5 -5
View File
@@ -22,10 +22,10 @@ import (
)
const (
baseURL = "/users"
fileUploadURL = "/file"
fileURL = "/file/:id"
publicFileURL = "/file/:file_name"
baseURL = "/users"
fileUploadURL = "/file"
fileURL = "/file/:id"
publicFileURL = "/file/:file_name"
)
type handler struct {
@@ -153,7 +153,7 @@ func (h *handler) listStaff(c *gin.Context) {
// getByID godoc
// @Summary Get user by ID
// @Description Returns a single user
// @Description Returns a single user with assigned branches
// @Tags user
// @Produce json
// @Security BearerAuth