/SLSTOffCampusWeb/App_Start/WebApiConfig.cs
C# | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | d1a9c3b5db8e4d1c4346817bd1ec2fa7 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web.Http;
-
- namespace SLSTOffCampusWeb
- {
- public static class WebApiConfig
- {
- public static void Register(HttpConfiguration config)
- {
- config.Routes.MapHttpRoute(
- name: "DefaultApi",
- routeTemplate: "api/{controller}/{id}",
- defaults: new { id = RouteParameter.Optional }
- );
- }
- }
- }