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
public class RegisterWebApiRoute | |
{ | |
public void Process(PipelineArgs args) | |
{ | |
var config = GlobalConfiguration.Configuration; | |
config.Routes.MapHttpRoute("DefaultApiRoute", | |
"MikeAPI/{controller}/{action}/{id}", | |
new { id = RouteParameter.Optional }); |
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
<?xml version="1.0"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<api> | |
<services> | |
<configuration type="Sitecore.Services.Infrastructure.Configuration.ServicesConfiguration, Sitecore.Services.Infrastructure"> | |
<allowedControllers hint="list:AddController"> | |
<allowedController desc="WallpaperController">MikeRobbins.WallpaperManager.Controllers.WallpaperController, MikeRobbins.WallpaperManager</allowedController> | |
</allowedControllers> |