Fork me on GitHub
#reitit
<
2022-11-01
>
wombawomba12:11:25

How can I match routes on the form /v2/{*image}/blobs/:blob, where image can contain any number of slashes?

wombawomba12:11:01

(I'm trying to implement the Docker Registry API specification, which requires this: https://docs.docker.com/registry/spec/api/#overview)

ikitommi14:11:53

I don’t think that works. would require different/slower routing algo. Could be added as a new router type, but doesn’t exist currently.

wombawomba15:11:23

yeah I figured as much

wombawomba15:11:40

I went ahead and implemented the routing for this API outside of Reitit

wombawomba15:11:14

perhaps Reitit should fail when the wildcard isn't at the end of a path?

wombawomba15:11:03

it threw me off a bit that Reitit accepted these routes in the first place, when it can't really handle them

ikitommi15:11:08

good point, please write an issue out of that.