Skip to content
Snippets Groups Projects
react_app.py 354 B
Newer Older
  • Learn to ignore specific revisions
  • from flask import Flask, request
    from flask_cors import CORS
    
    Mia Wang's avatar
    Mia Wang committed
    
    
    app = Flask(__name__)
    CORS(app)
    
    Mia Wang's avatar
    Mia Wang committed
    
    
    
    @app.route('/profile')
    
    Mia Wang's avatar
    Mia Wang committed
    def my_profile():
        response_body = {
            "name": "Nagato",
            "about" :"Hello! I'm a full stack developer that loves python and javascript"
        }
    
    
        return response_body
    
    # def get_user_input():
    
    #     return request.args