Skip to content

Commit

Permalink
Fix trailing slash issue in path endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmymathews committed Jul 26, 2023
1 parent f724e7f commit db78541
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spatialprofilingtoolbox/apiserver/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ async def get_root():
)


@app.get("/study-names")
@app.get("/study-names/")
async def get_study_names() -> list[StudyHandle]:
"""
The names of studies/datasets, with display names.
"""
return query().retrieve_study_handles()


@app.get("/study-summary")
@app.get("/study-summary/")
async def get_study_summary(
study: ValidStudy,
) -> StudySummary:
Expand Down

0 comments on commit db78541

Please sign in to comment.