Change endpoint structure
This commit is contained in:
parent
43bcf8025d
commit
3b7e47fbfa
@ -29,8 +29,8 @@ class Transcriptions(FastAPI):
|
|||||||
self.constants = constants
|
self.constants = constants
|
||||||
|
|
||||||
self.endpoints = {
|
self.endpoints = {
|
||||||
"get_episodes": self.get_episodes_handler,
|
"transcriptions/get_episodes": self.get_episodes_handler,
|
||||||
"get_episode_lines": self.get_episode_lines_handler,
|
"transcriptions/get_episode_lines": self.get_episode_lines_handler,
|
||||||
#tbd
|
#tbd
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ class Transcriptions(FastAPI):
|
|||||||
|
|
||||||
async def get_episodes_handler(self, data: ValidShowEpisodeListRequest):
|
async def get_episodes_handler(self, data: ValidShowEpisodeListRequest):
|
||||||
"""
|
"""
|
||||||
/get_episodes/
|
/transcriptions/get_episodes/
|
||||||
Get list of episodes by show id
|
Get list of episodes by show id
|
||||||
"""
|
"""
|
||||||
show_id = data.s
|
show_id = data.s
|
||||||
@ -92,7 +92,7 @@ class Transcriptions(FastAPI):
|
|||||||
}
|
}
|
||||||
|
|
||||||
async def get_episode_lines_handler(self, data: ValidShowEpisodeLineRequest):
|
async def get_episode_lines_handler(self, data: ValidShowEpisodeLineRequest):
|
||||||
"""/get_episode_lines/
|
"""/transcriptions/get_episode_lines/
|
||||||
Get lines for a particular episode
|
Get lines for a particular episode
|
||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user