misc/breaking: remove trailing slashes from endpoints
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user