I want to rewrite flask application in golang-gin, and i have a path problem in routes, :status have only 3 version start
pause
end
, this is my current routes :
contracts.POST("/:id/:status", s.contractChangeStatus)
contracts.POST("/:id/events/:type", AccessRole(models.Work), s.eventCreate)
problem is when i execute app, return this error :
panic: path segment 'events/:type' conflicts with existing wildcard ':status' in path '/contracts/:id/events/:type'
what is the best practice for solve this situation ? in flask exist a simple path /any(start|pause|stop), how i can solve this in golang-gin ? without change api structure !