# Route alias

**URL:** <https://www.ruby-forum.com/t/route-alias/154861>\
**Category:** Rails\
**Created:** [December 4, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/route-alias/154861 "2008-12-04T16:56:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jah4711](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/898d66/32.png) [@jah4711](https://www.ruby-forum.com/u/jah4711)\
**Post date:** [December 4, 2008, 4:56pm UTC](https://www.ruby-forum.com/t/route-alias/154861/1 "2008-12-04T16:56:32Z")

</div>

Hi,

the Rails app I am currently working on will have a public API (REST)  
so other can communicate with it. I am thinking right now which URLs  
to use. I saw some apps which use a prefix for their API, e.g.

/api/v1/projects…

I am not quite sure if this is really necessary, I mean if the app is  
quite RESTful, there shouldn’t be much changes to the interface?

If I use the abovementioned approach, I still don’t want to show these  
ugly URLs to my users. So I need to have some kind of URL aliasing so  
that actually

/projects points to /api/current\_version/projects

How can I do that in a relative easy, dry, and clear way.

Comments, tips are appreciated. Thank you
