Permalink
Browse files

Doing it the old way w.r.t RegisterServiceRoutes(). Call it independe…

…ntly

from the rest of the routes. Otherwise, a lot of unit tests fail
  • Loading branch information...
1 parent b2f6719 commit f9ddd8e4b0e6529e9c5acce172e4073f1b608aed @deepakaravindr deepakaravindr committed Jun 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −0 src/NuGetGallery/App_Start/AppActivator.cs
  2. +0 −1 src/NuGetGallery/App_Start/Routes.cs
@@ -171,6 +171,7 @@ private static void ElmahPreStart()
private static void AppPostStart(IAppConfiguration configuration)
{
Routes.RegisterRoutes(RouteTable.Routes, configuration.FeedOnlyMode);
+ Routes.RegisterServiceRoutes(RouteTable.Routes);
AreaRegistration.RegisterAllAreas();
GlobalFilters.Filters.Add(new ElmahHandleErrorAttribute() { View = "~/Views/Errors/InternalError.cshtml" });
@@ -24,7 +24,6 @@ public static void RegisterRoutes(RouteCollection routes, bool feedOnlyMode = fa
new { controller = "Pages", action = "EmptyHome" });
}
Routes.RegisterApiV2Routes(routes);
- Routes.RegisterServiceRoutes(routes);
}
public static void RegisterUIRoutes(RouteCollection routes)

0 comments on commit f9ddd8e

Please sign in to comment.