Don't require a slash for the search URL

This commit is contained in:
Daoud Clarke 2022-07-01 20:43:38 +01:00
parent 24f82a3c2f
commit db1aa1a928

View file

@ -13,7 +13,7 @@ SCORE_THRESHOLD = 0.25
def create_router(ranker: HeuristicRanker) -> APIRouter:
router = APIRouter(prefix="/search", tags=["search"])
@router.get("/")
@router.get("")
def search(s: str):
return ranker.search(s)