Solarion
Honorary Master
- Joined
- Nov 14, 2012
- Messages
- 28,051
- Reaction score
- 17,805
think your routing in the unnecessary and screwing it up
Managed to sort it all out; posts, requests all of it. Working nicely now. Starting to look like a proper service now. I tell you what, flip, this was a bit of a mission.
It was the routing. Thanks Spacerat.
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);