plugins-quickstart
plugins-quickstart copied to clipboard
Does anyone know how to receive user input parameters?
@app.get("/news/<string:url>")
async def get_news(url):
print(url)
return quart.Response(response=json.dumps(url), status=200)
I want to receive a URL link input from the user, how should I handle it?
@app.get("/news/<string:url>") async def get_news(url): print(url) return quart.Response(response=json.dumps(url), status=200)I want to receive a URL link input from the user, how should I handle it?
Ummm I'm Not Sure Yet Maybe You Can Visit This https://towardsdatascience.com/proper-ways-to-pass-environment-variables-in-json-for-curl-post-f797d2698bf3 Hope This Will Help
What you are doing above looks good!