﻿namespace MSTeams.Karma
{
    using System.Web.Http;

    /// <summary>
    /// Web API configuration.
    /// </summary>
    public static class WebApiConfig
    {
        /// <summary>
        /// Registers the API configuration.
        /// </summary>
        /// <param name="config">The configuration.</param>
        public static void Register(HttpConfiguration config)
        {
            // Web API configuration and services

            // Web API routes
            config.MapHttpAttributeRoutes();

            config.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional });
        }
    }
}
{'avg_line_length': 27.962962962962962, 'max_line_length': 65, 'alphanum_fraction': 0.5258278145695364, 'licenses': ['MIT'], 'repository_name': 'aaronr93/MSTeams-Karma', 'path': 'MSTeams-Karma/App_Start/WebApiConfig.cs', 'size': 757, 'lang': 'C#'}