Skip to content

Commit

Permalink
Remove confusing endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcampbell committed Jan 25, 2024
1 parent d9d270c commit 708122a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/nsls2api/api/v1/proposal_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ async def get_commissioning_proposals(beamline: str | None = None):
)
return model


@router.get("/proposals/{cycle}")
async def get_proposals_for_cycle(cycle: str):
proposal_list = await proposal_service.fetch_proposals_for_cycle(cycle)
if proposal_list is None:
return fastapi.responses.JSONResponse(
{"error": f"No proposals were found for cycle {cycle}"},
status_code=404,
)
data = {"cycle": cycle, "proposals": proposal_list}
return data

# TODO: Add back into schema when implemented.
@router.get("/proposals/", include_in_schema=False)
async def get_proposals():
Expand Down

0 comments on commit 708122a

Please sign in to comment.