diff --git a/app.py b/app.py index 74b0a03..2b0acbe 100644 --- a/app.py +++ b/app.py @@ -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') diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..56d6f2f --- /dev/null +++ b/shell.nix @@ -0,0 +1,15 @@ +with import {}; + +mkShell { + buildInputs = [ + python3 + python3Packages.flask + python3Packages.flask-cors + python3Packages.gunicorn + ]; + + shellHook = '' + export LANG=C.UTF-8 + export LC_ALL=C.UTF-8 + ''; +} \ No newline at end of file