Commit 97fb170e authored by Dannon Baker's avatar Dannon Baker
Browse files

Fix tool icon endpoint to handle toolshed tool IDs with slashes

Changed the FastAPI route parameter from {tool_id} to {tool_id:path} to
properly capture complex tool identifiers containing forward slashes.
parent fa97351f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ class FetchTools:
        return self.service.create_fetch(trans, payload, files)

    @router.get(
        "/api/tools/{tool_id}/icon",
        "/api/tools/{tool_id:path}/icon",
        summary="Get the icon image associated with a tool",
        response_class=PNGIconResponse,
        responses={