misc/breaking: remove trailing slashes from endpoints

This commit is contained in:
2025-01-29 15:45:09 -05:00
parent 2e179ca7e6
commit c73180449f
9 changed files with 24 additions and 23 deletions

View File

@@ -50,7 +50,7 @@ class AI(FastAPI):
}
for endpoint, handler in self.endpoints.items():
app.add_api_route(f"/{endpoint}/", handler, methods=["POST"] if not endpoint == "testy" else ["POST", "GET"])
app.add_api_route(f"/{endpoint}", handler, methods=["POST"] if not endpoint == "testy" else ["POST", "GET"])
async def respond_via_webhook(self, data: ValidHookSongRequest, originalRequest: Request):
@@ -87,7 +87,7 @@ class AI(FastAPI):
async def ai_handler(self, request: Request):
"""
/ai/base/
/ai/base
AI BASE Request
(Requires key)
"""
@@ -118,7 +118,7 @@ class AI(FastAPI):
async def ai_openai_handler(self, request: Request):
"""
/ai/openai/
/ai/openai
AI Request
(Requires key)
"""
@@ -160,7 +160,7 @@ class AI(FastAPI):
async def ai_song_handler(self, data: ValidAISongRequest, request: Request):
"""
/ai/song/
/ai/song
AI (Song Info) Request [Public]
"""
ai_prompt = "You are a helpful assistant who will provide tidbits of info on songs the user may listen to."