mccalltd / AttributeRouting

Define your routes using attributes on actions in ASP.NET MVC and Web API.
http://mccalltd.github.io/AttributeRouting/
MIT License
416 stars 89 forks source link

Access Routes in Javascript #238

Closed mdmoura closed 11 years ago

mdmoura commented 11 years ago

Hello,

I am using Web API on an ASP.NET MVC project using AR, Localization and T4MVC.

On my Javascript I need to know the URLS so I can access the Web API actions.

How are you solving this?

Thank You, Miguel

mccalltd commented 11 years ago

By writing the URLs in the js or using @Url.Action in views. AR has no special facility for doing this.