File size: 315 Bytes
6e7eaf3
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from flask import Flask, request, make_response
app = Flask(__name__)

@app.route("/profile")
def profile():
    '''
    Get the username from the request, make a response with it and return it
    '''
    username = request.args.get('username')
    response = make_response(f"Hello {username}")
    return response