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
my code:
//get task by id,return task
r.GET("cms/agent/v1/tasks/:id", handlers.GetTaskById)
//get task by object_id, return task
r.GET("cms/agent/v1/tasks/next/:objectId", handlers.GetNextTaskByObject)
error:
.panic: 'next' in new path '/cms/agent/v1/tasks/next/:objectId' conflicts with existing wildcard ':id' in existing prefix '/cms/agent/v1/tasks/:id'
The text was updated successfully, but these errors were encountered:
my code:
//get task by id,return task
r.GET("cms/agent/v1/tasks/:id", handlers.GetTaskById)
//get task by object_id, return task
r.GET("cms/agent/v1/tasks/next/:objectId", handlers.GetNextTaskByObject)
error:
.panic: 'next' in new path '/cms/agent/v1/tasks/next/:objectId' conflicts with existing wildcard ':id' in existing prefix '/cms/agent/v1/tasks/:id'
The text was updated successfully, but these errors were encountered: