Last active
December 16, 2015 06:49
-
-
Save marckm/5394649 to your computer and use it in GitHub Desktop.
Default WebApiConfig.cs content
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
namespace DataIntegrationService | |
{ | |
using System.Web.Http; | |
/// <summary> | |
/// Contains the configuration of Web Api. | |
/// </summary> | |
public class WebApiConfig | |
{ | |
/// <summary> | |
/// Registers the routes for Web Api. | |
/// </summary> | |
/// <param name="config">The configuration.</param> | |
public static void Register(HttpConfiguration config) | |
{ | |
config.Routes.MapHttpRoute( | |
name: "DefaultApi", | |
routeTemplate: "api/{controller}/{id}", | |
defaults: new { id = RouteParameter.Optional }); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment