cleanup
This commit is contained in:
parent
50500ad2c4
commit
f03121727b
@ -35,7 +35,7 @@ class LyricSearch(FastAPI):
|
|||||||
self.constants = constants
|
self.constants = constants
|
||||||
self.lyrics_engine = importlib.import_module("lyrics_engine").LyricsEngine()
|
self.lyrics_engine = importlib.import_module("lyrics_engine").LyricsEngine()
|
||||||
|
|
||||||
self.endpoint_name = "/search/"
|
self.endpoint_name = "search"
|
||||||
self.acceptable_request_sources = [
|
self.acceptable_request_sources = [
|
||||||
"WEB",
|
"WEB",
|
||||||
"IRC-MS",
|
"IRC-MS",
|
||||||
@ -46,7 +46,7 @@ class LyricSearch(FastAPI):
|
|||||||
"LIMNORIA-SHARED"
|
"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):
|
async def search_handler(self, data: ValidLyricRequest):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user