title: Adding services framework (web api) to DNN7 module
body: <p>I'm trying to integrate the Web API into DNN7 module.</p>
  
  <p>Controller &amp; Mapper:</p>
  
  <pre><code>namespace MyControllers
  {
      public class ExampleController : DnnApiController
          {
              #region "Web Methods"
              [DnnAuthorize()]
              [HttpGet()]
              public HttpResponseMessage HelloWorld()
              {
                  try
                  {
                      string helloWorld = "Hello World!";
                      return Request.CreateResponse(HttpStatusCode.OK, helloWorld);
                  }
                  catch (System.Exception ex)
                  {
                      //Log to DotNetNuke and reply with Error
                      Exceptions.LogException(ex);
                      return Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message);
                  }
              }
  
  
      public class RouteMapper : IServiceRouteMapper
          {
              public void RegisterRoutes(IMapRoute mapRouteManager)
              {
                  mapRouteManager.MapHttpRoute("MyControllers", "default", "{controller}/{action}", new[] { "MyControllers" });
              }
          }
  }
  </code></pre>
  
  <p>Then I'm trying to access the HelloWorld method from the url</p>
  
  <pre><code>https://localhost/DesktopModules/MyControllers/API/Example/HelloWorld
  </code></pre>
  
  <p>and getting the </p>
  
  <p>HTTP Error 404.0 - Not Found</p>
  
  <p>Any suggestions on what can be missing? </p>