Skip to content

Instantly share code, notes, and snippets.

@dannycabrera
Created August 21, 2019 19:50
Show Gist options
  • Save dannycabrera/6340c06a691a691aabfe4104048f7a27 to your computer and use it in GitHub Desktop.
Save dannycabrera/6340c06a691a691aabfe4104048f7a27 to your computer and use it in GitHub Desktop.
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