Loading endpoints/LyricSearch.py +2 −2 Changes for endpoints/LyricSearch.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ class LyricSearch(FastAPI): self.constants = constants self.lyrics_engine = importlib.import_module("lyrics_engine").LyricsEngine() self.endpoint_name = "/search/" self.endpoint_name = "search" self.acceptable_request_sources = [ "WEB", "IRC-MS", Loading @@ -46,7 +46,7 @@ class LyricSearch(FastAPI): "LIMNORIA-SHARED" ] app.add_api_route(self.endpoint_name, self.search_handler, methods=["POST"]) app.add_api_route("/%s/" % self.endpoint_name, self.search_handler, methods=["POST"]) async def search_handler(self, data: ValidLyricRequest): """ Loading Loading
endpoints/LyricSearch.py +2 −2 Changes for endpoints/LyricSearch.py: 2 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ class LyricSearch(FastAPI): self.constants = constants self.lyrics_engine = importlib.import_module("lyrics_engine").LyricsEngine() self.endpoint_name = "/search/" self.endpoint_name = "search" self.acceptable_request_sources = [ "WEB", "IRC-MS", Loading @@ -46,7 +46,7 @@ class LyricSearch(FastAPI): "LIMNORIA-SHARED" ] app.add_api_route(self.endpoint_name, self.search_handler, methods=["POST"]) app.add_api_route("/%s/" % self.endpoint_name, self.search_handler, methods=["POST"]) async def search_handler(self, data: ValidLyricRequest): """ Loading