From 3b7e47fbfa61daaef1c81e2d06ab7c8b4fc5635f Mon Sep 17 00:00:00 2001 From: codey Date: Tue, 13 Aug 2024 17:51:35 -0400 Subject: [PATCH] Change endpoint structure --- endpoints/transcriptions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/endpoints/transcriptions.py b/endpoints/transcriptions.py index f47c02a..f05bfc2 100644 --- a/endpoints/transcriptions.py +++ b/endpoints/transcriptions.py @@ -29,8 +29,8 @@ class Transcriptions(FastAPI): self.constants = constants self.endpoints = { - "get_episodes": self.get_episodes_handler, - "get_episode_lines": self.get_episode_lines_handler, + "transcriptions/get_episodes": self.get_episodes_handler, + "transcriptions/get_episode_lines": self.get_episode_lines_handler, #tbd } @@ -39,7 +39,7 @@ class Transcriptions(FastAPI): async def get_episodes_handler(self, data: ValidShowEpisodeListRequest): """ - /get_episodes/ + /transcriptions/get_episodes/ Get list of episodes by show id """ show_id = data.s @@ -92,7 +92,7 @@ class Transcriptions(FastAPI): } async def get_episode_lines_handler(self, data: ValidShowEpisodeLineRequest): - """/get_episode_lines/ + """/transcriptions/get_episode_lines/ Get lines for a particular episode """ return {