Skip to content

Commit

Permalink
Fix endpoint paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Mar 6, 2024
1 parent 77002cc commit 2a66ab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/btrixcloud/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def init_pages_api(app, mdb, crawl_ops, org_ops, storage_ops, user_dep):

org_crawl_dep = org_ops.org_crawl_dep

@app.post("/orgs/{oid}/crawls/all/pages/{page_id}", tags=["pages"])
@app.post("/orgs/{oid}/crawls/all/pages/reAdd", tags=["pages"])
async def re_add_all_crawl_pages(org: Organization, user: User = Depends(user_dep)):
"""Re-add pages for all crawls in org (superuser only)"""
if not user.is_superuser:
Expand All @@ -397,7 +397,7 @@ async def re_add_all_crawl_pages(org: Organization, user: User = Depends(user_de
asyncio.create_task(ops.re_add_all_crawl_pages(org.id))
return {"started": True}

@app.post("/orgs/{oid}/crawls/{crawl_id}/pages/{page_id}", tags=["pages"])
@app.post("/orgs/{oid}/crawls/{crawl_id}/pages/reAdd", tags=["pages"])
async def re_add_crawl_pages(
crawl_id: str, org: Organization = Depends(org_crawl_dep)
):
Expand Down

0 comments on commit 2a66ab8

Please sign in to comment.