Spaces:
Sleeping
Sleeping
Commit ·
3232831
1
Parent(s): 480ddb9
fix: support plugins endpoint without trailing slash
Browse files
backend/app/api/routes/plugins.py
CHANGED
|
@@ -268,6 +268,7 @@ class PluginResponse(BaseModel):
|
|
| 268 |
requires_key: bool
|
| 269 |
|
| 270 |
|
|
|
|
| 271 |
@router.get("/")
|
| 272 |
async def list_plugins(category: str | None = None) -> dict[str, Any]:
|
| 273 |
"""List all available plugins, optionally filtered by category."""
|
|
|
|
| 268 |
requires_key: bool
|
| 269 |
|
| 270 |
|
| 271 |
+
@router.get("")
|
| 272 |
@router.get("/")
|
| 273 |
async def list_plugins(category: str | None = None) -> dict[str, Any]:
|
| 274 |
"""List all available plugins, optionally filtered by category."""
|