mirror of
https://github.com/kaiyuran/Emoji-translator-Server.git
synced 2024-11-24 10:03:41 +00:00
working
This commit is contained in:
parent
289789326b
commit
8790133b27
1 changed files with 2 additions and 1 deletions
3
app.py
3
app.py
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue