]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5889 Enable possibility of mapping index action to / with Java WS
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 5 Dec 2014 15:54:13 +0000 (16:54 +0100)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 5 Dec 2014 16:06:08 +0000 (17:06 +0100)
server/sonar-web/src/main/webapp/WEB-INF/lib/java_ws_routing.rb

index ac54ba5ce65d7efd884eff566bfc7c6381d99d78..741cce8bf4569bab3919356dcb57498dc571acf4 100644 (file)
@@ -35,6 +35,9 @@ module ActionController
           controller.actions.each do |action|
             if (!action.handler().java_kind_of?(Java::OrgSonarApiServerWs::RailsHandler))
               prepend_route("#{controller.path()}/#{action.key()}/:id", {:controller => 'api/java_ws', :action => 'index', :wsaction => action.key(), :wspath => controller.path()})
+              if action.key()=='index'
+                prepend_route("#{controller.path()}", {:controller => 'api/java_ws', :action => 'index', :wsaction => action.key(), :wspath => controller.path()})
+              end
             end
           end
         end