Created
August 21, 2019 19:50
-
-
Save dannycabrera/6340c06a691a691aabfe4104048f7a27 to your computer and use it in GitHub Desktop.
FaxApp Startup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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