MapServiceRoute in configuration

Topics: Web Api
Oct 5, 2011 at 8:00 PM

Is it possible to map routes in web.config?

 

IE

 routes.MapServiceRoute<ContactsApi>("api/contacts");
            routes.MapServiceRoute<StatusApi>("api/status");

to something like:

<route>
<add value="test/test"/>
</route>
Coordinator
Oct 5, 2011 at 9:59 PM

I don’t think so – routes are generally specified in code.

Daniel Roth

From: six5hunter [email removed]
Sent: Wednesday, October 05, 2011 12:00 PM
To: Daniel Roth
Subject: MapServiceRoute in configuration [wcf:274896]

From: six5hunter

Is it possible to map routes in web.config?

IE

 routes.MapServiceRoute<ContactsApi>("api/contacts");
            routes.MapServiceRoute<StatusApi>("api/status");

to something like:

<route>
<add value="test/test"/>
</route>
Oct 5, 2011 at 10:23 PM

That's what I thought.  Thanks