misc/breaking: remove trailing slashes from endpoints
This commit is contained in:
@ -27,11 +27,11 @@ class YT(FastAPI):
|
||||
}
|
||||
|
||||
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"])
|
||||
|
||||
async def yt_video_search_handler(self, data: ValidYTSearchRequest):
|
||||
"""
|
||||
/yt_video_search/
|
||||
/yt_video_search
|
||||
Search for YT Video by Title (closest match returned)
|
||||
"""
|
||||
|
||||
|
Reference in New Issue
Block a user