misc/breaking: remove trailing slashes from endpoints
This commit is contained in:
@ -118,7 +118,7 @@ class LyricSearch(FastAPI):
|
||||
self.lrc_regex = regex.compile(r'\[([0-9]{2}:[0-9]{2})\.[0-9]{1,3}\](\s(.*)){0,}')
|
||||
|
||||
for endpoint, handler in self.endpoints.items():
|
||||
app.add_api_route(f"/{endpoint}/", handler, methods=["POST"])
|
||||
app.add_api_route(f"/{endpoint}", handler, methods=["POST", "GET"])
|
||||
|
||||
# async def lyric_cache_list_handler(self):
|
||||
# """
|
||||
|
Reference in New Issue
Block a user