We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb54478 commit f27f836Copy full SHA for f27f836
src/ScriptCs.WebApi/WebApi.cs
@@ -15,7 +15,7 @@ public HttpSelfHostServer CreateServer(HttpSelfHostConfiguration config)
15
config.Services.Replace(typeof(IHttpControllerTypeResolver), new ControllerResolver(caller));
16
17
config.Routes.MapHttpRoute(name: "DefaultApi",
18
- routeTemplate: "api/{controller}/{id}",
+ routeTemplate: "{controller}/{id}",
19
defaults: new { id = RouteParameter.Optional }
20
);
21
return new HttpSelfHostServer(config);
0 commit comments