diff --git a/main.py b/main.py index 5f8bb16..190c8ad 100644 --- a/main.py +++ b/main.py @@ -4,8 +4,6 @@ from mylib.logic import wiki as wikilogic from mylib.logic import phrase as wikiphrases - - app = FastAPI() @app.get("/") @@ -26,15 +24,8 @@ async def wiki(name: str): result = wikilogic(name) return {"result": result} -@app.get("/wiki/{name}") -async def wiki(name: str): - """Retrieve a Wikipedia page""" - - result = wikilogic(name) - return {"result": result} - @app.get("/phrase/{name}") -async def wiki(name: str): +async def phrase(name: str): """Retrieve a Wikipedia page and return phrases""" result = wikiphrases(name)