APIStar catch-all route


#1

Hi - I can’t seem to find this in the documentation, or by experimenting with route syntax. I’d like to have a route that catches /somepath/anything-including-slashes. Is this possible?


#2

And if not possible, i suppose the question is - would APIStar team ever be open to supporting regex in route syntax?


#3

+1 I have the same question. Catch-all routing is needed for running single-page apps with their own client-side routing solutions.


#4

Using ‘types.PathWildcard’ as the annotation will do that, yup.