Skip to content

Commit

Permalink
explicitly specify operation so tool_panels are included in apispec &…
Browse files Browse the repository at this point in the history
… doc
  • Loading branch information
dannon committed Nov 8, 2023
1 parent b7fc2e3 commit c655d36
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 c655d36

Please sign in to comment.