Skip to content

Commit

Permalink
Merge pull request #16991 from dannon/tool_panels-doc
Browse files Browse the repository at this point in the history
Update API tool_panels route conditions
  • Loading branch information
martenson committed Nov 11, 2023
2 parents 0cb5418 + c655d36 commit 2319bc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/galaxy/webapps/galaxy/buildapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,10 @@ def populate_api_routes(webapp, app):
# ====== TOOLS API ======
# =======================

webapp.mapper.connect("/api/tool_panels", action="panel_views", controller="tools")
webapp.mapper.connect("/api/tool_panels/{view}", action="panel_view", controller="tools")
webapp.mapper.connect("/api/tool_panels", action="panel_views", controller="tools", conditions=dict(method=["GET"]))
webapp.mapper.connect(
"/api/tool_panels/{view}", action="panel_view", controller="tools", conditions=dict(method=["GET"])
)

webapp.mapper.connect("/api/tools/all_requirements", action="all_requirements", controller="tools")
webapp.mapper.connect("/api/tools/error_stack", action="error_stack", controller="tools")
Expand Down

0 comments on commit 2319bc3

Please sign in to comment.