Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FaxApp Startup
using Owin;
using System.Web.Http;
namespace FaxApp
{
class Startup
{
public void Configuration(IAppBuilder appBuilder)
{
// Configure Web API for self-host.
HttpConfiguration config = new HttpConfiguration();
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "faxapp/{controller}/{action}",
defaults: new { id = RouteParameter.Optional }
);
appBuilder.UseWebApi(config);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment