rename shorten_url to receive_url
This commit is contained in:
parent
051c1a1441
commit
73df28f14b
@ -19,7 +19,7 @@ app.add_middleware(
|
|||||||
|
|
||||||
|
|
||||||
@app.get('/')
|
@app.get('/')
|
||||||
async def unshorten_url(url: Optional[str] = None):
|
async def receive_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