Skip to content
Snippets Groups Projects
Commit f3a8f77d authored by Mia Wang's avatar Mia Wang
Browse files

trying to request react data in flask --2

parent 356cf071
No related branches found
No related tags found
No related merge requests found
No preview for this file type
from flask import Flask from flask import Flask, request
from flask_cors import CORS
api = Flask(__name__) app = Flask(__name__)
CORS(app)
@api.route('/')
@app.route('/profile')
def my_profile(): def my_profile():
response_body = { response_body = {
"name": "Nagato", "name": "Nagato",
"about" :"Hello! I'm a full stack developer that loves python and javascript" "about" :"Hello! I'm a full stack developer that loves python and javascript"
} }
return response_body return response_body
\ No newline at end of file
# def get_user_input():
# return request.args
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment