diff options
Diffstat (limited to 'samples/OpenIdOfflineProvider/Startup.cs')
-rw-r--r-- | samples/OpenIdOfflineProvider/Startup.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/samples/OpenIdOfflineProvider/Startup.cs b/samples/OpenIdOfflineProvider/Startup.cs new file mode 100644 index 0000000..2477442 --- /dev/null +++ b/samples/OpenIdOfflineProvider/Startup.cs @@ -0,0 +1,21 @@ +//----------------------------------------------------------------------- +// <copyright file="Startup.cs" company="Outercurve Foundation"> +// Copyright (c) Outercurve Foundation. All rights reserved. +// </copyright> +//----------------------------------------------------------------------- + +namespace DotNetOpenAuth.OpenIdOfflineProvider { + using System.Web.Http; + using Owin; + + 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.Routes.MapHttpRoute("default", "{controller}/{id}", new { controller = "Home", id = RouteParameter.Optional }); + appBuilder.UseWebApi(config); + } + } +}
\ No newline at end of file |