rename function
This commit is contained in:
parent
5c2c3bd5dd
commit
bcf4dd27b7
@ -17,7 +17,7 @@ app.add_middleware(
|
|||||||
|
|
||||||
|
|
||||||
@app.get('/')
|
@app.get('/')
|
||||||
async def shorten_url(url: Optional[str] = None):
|
async def unshorten_url(url: Optional[str] = None):
|
||||||
if url is None:
|
if url is None:
|
||||||
return {"error": "no url provided"}
|
return {"error": "no url provided"}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user