1234567891011121314151617181920212223242526272829 |
- using Owin;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Web.Http;
- namespace CloudSimulator
- {
- public class Startup
- {
- // This code configures Web API. The Startup class is specified as a type
- // parameter in the WebApp.Start method.
- public void Configuration(IAppBuilder appBuilder)
- {
- // Configure Web API for self-host.
- HttpConfiguration config = new HttpConfiguration();
- config.MapHttpAttributeRoutes();
- config.Routes.MapHttpRoute(
- name: "DefaultApi",
- routeTemplate: "api/{controller}/{id}",
- defaults: new { id = RouteParameter.Optional }
- );
- appBuilder.UseWebApi(config);
- }
- }
- }
|