Compare commits

..

6 commits

Author SHA1 Message Date
kaiyuran
8790133b27 working 2024-11-19 13:24:56 -05:00
kaiyuran
289789326b Revert "add cors"
This reverts commit 0d02124115.
2024-11-19 13:23:30 -05:00
kaiyuran
66b64f4275 Revert "trying other ports"
This reverts commit d0d8761377.
2024-11-19 13:21:49 -05:00
kaiyuran
af4c33a21b Revert "change port"
This reverts commit b8abf7f7d0.
2024-11-19 13:21:42 -05:00
kaiyuran
0ab36ce8e1 Revert "not working"
This reverts commit 533fc4a9bc.
2024-11-19 13:21:37 -05:00
kaiyuran
533fc4a9bc not working 2024-11-19 13:21:23 -05:00
2 changed files with 4 additions and 19 deletions

8
app.py
View file

@ -200,14 +200,14 @@ def emojify(message):
return final
app = Flask(__name__)
CORS(app)
# if __name__ == "__main__":
# app.run(port=5500)
@app.route('/getemoji', methods=['GET'])
# @cross_origin()
def get_random_emoji():
# Get the 'letter' parameter from the URL
message = request.args.get('message')

View file

@ -1,15 +0,0 @@
with import <nixpkgs> {};
mkShell {
buildInputs = [
python3
python3Packages.flask
python3Packages.flask-cors
python3Packages.gunicorn
];
shellHook = ''
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
'';
}