You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
[GIN-debug] GET /v1/taxes/:taxId --> microservices/wwwapi/controller.(*TaxController).FindByID-fm (7 handlers)
[GIN-debug] PUT /v1/taxes/:taxId --> microservices/wwwapi/controller.(*TaxController).UpdateByID-fm (7 handlers)
[GIN-debug] DELETE /v1/taxes/:taxId --> microservices/wwwapi/controller.(*TaxController).SoftDeleteByID-fm (7 handlers)
[GIN-debug] GET /v1/users/username/:userId --> microservices/wwwapi/controller.(*UserController).FindByUsername-fm (7 handlers)
[GIN-debug] GET /v1/users/:userId --> microservices/wwwapi/controller.(*UserController).FindByID-fm (7 handlers)
panic: wildcard route ':userId' conflicts with existing children in path '/v1/users/:userId'
...
But the error makes no sense because if you look at the taxes endpoint, it has a GET, PUT, and DELETE all on the same /v1/taxes/:taxId endpoint, but when I try it for the users endpoint it gives me that error.
Why is this happening? Makes no sense... you'd think it would give me the same error for both endpoints.
The text was updated successfully, but these errors were encountered:
Never mind, figured it out. Apparently I can't have a path like /users/foo in combination with /users/:id, and have to use something like /users/:id/foo instead.
When I start my router, I get this error:
But the error makes no sense because if you look at the
taxes
endpoint, it has aGET
,PUT
, andDELETE
all on the same/v1/taxes/:taxId
endpoint, but when I try it for the users endpoint it gives me that error.Why is this happening? Makes no sense... you'd think it would give me the same error for both endpoints.
The text was updated successfully, but these errors were encountered: