Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f9ddd8e4b0e6529e9c5acce172e4073f1b608aed 1 parent b2f6719
@deepakaravindr deepakaravindr authored
View
1  src/NuGetGallery/App_Start/AppActivator.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" });
View
1  src/NuGetGallery/App_Start/Routes.cs
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.