misc/breaking: remove trailing slashes from endpoints
This commit is contained in:
@ -36,11 +36,11 @@ class Transcriptions(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 get_episodes_handler(self, data: ValidShowEpisodeListRequest):
|
||||
"""
|
||||
/transcriptions/get_episodes/
|
||||
/transcriptions/get_episodes
|
||||
Get list of episodes by show id
|
||||
"""
|
||||
show_id = data.s
|
||||
@ -97,7 +97,7 @@ class Transcriptions(FastAPI):
|
||||
}
|
||||
|
||||
async def get_episode_lines_handler(self, data: ValidShowEpisodeLineRequest):
|
||||
"""/transcriptions/get_episode_lines/
|
||||
"""/transcriptions/get_episode_lines
|
||||
Get lines for a particular episode
|
||||
"""
|
||||
show_id = data.s
|
||||
|
Reference in New Issue
Block a user