maxwell92/k8sapi

There could not take two wildcard url path in one iris.API()

Opened this issue · 0 comments

There could not take two wildcard url path in one iris.API(),
e.g.

iris.API("/api/:id", testAPI{})
iris.API("/api/:id/company/:comid", testAPI{})

There will be a panic while go building,

panic: 
Error: Router: Path's part: ':id/company/:comid' conflicts with wildcard ':id' in the route path: '/api/:id/company/:comid' !

This should be sovled because we have to set different path to the same API.