Revert "add cors"

This reverts commit 0d02124115.
This commit is contained in:
kaiyuran 2024-11-19 13:23:30 -05:00
parent 66b64f4275
commit 289789326b

4
app.py
View file

@ -1,5 +1,4 @@
from flask import Flask, request, jsonify from flask import Flask, request, jsonify
from flask_cors import CORS
import random import random
def emojify(message): def emojify(message):
@ -205,10 +204,9 @@ def emojify(message):
app = Flask(__name__) app = Flask(__name__)
CORS(app)
@app.route('/getemoji', methods=['GET']) @app.route('/getemoji', methods=['GET'])
# @cross_origin()
def get_random_emoji(): def get_random_emoji():
# Get the 'letter' parameter from the URL # Get the 'letter' parameter from the URL
message = request.args.get('message') message = request.args.get('message')