Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Route Aliases #239
It is conceivable that you might want both
added a commit
Dec 9, 2014
Regarding your questions - my opinion (and my forthcoming PR) is that an alias should be treated just as if you made a copy of the resource and only changed the URI - an alias is just a way to tie two separate URI's to the same resource. It will be up to the developer to default any appropriate arguments to methods.
I have implemented it to just be a comma separated list for the URIs. I wanted to use a URL, but the support for that really isn't there in the custom metadata. I have written a function that splits on the comma properly, even if the comma is used inside of a regex token.
The dashboard repeats the same endpoint name with the separate URI, same with the generated documentation.