This commit is contained in:
kaiyuran 2024-11-19 13:24:56 -05:00
parent 289789326b
commit 8790133b27

3
app.py
View file

@ -1,4 +1,5 @@
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):
@ -204,7 +205,7 @@ def emojify(message):
app = Flask(__name__) app = Flask(__name__)
CORS(app)
@app.route('/getemoji', methods=['GET']) @app.route('/getemoji', methods=['GET'])
def get_random_emoji(): def get_random_emoji():