python flask get request with parameters code example
Example 1: get arguments from url flask
from flask import request
@app.route(...)
def login():
username = request.args.get('username')
password = request.args.get('password')
Example 2: flask get with parameters
@app.route('/<name>')
def my_view_func(name):
return name