Don't require a slash for the search URL
This commit is contained in:
parent
24f82a3c2f
commit
db1aa1a928
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue