diff --git a/app.py b/api_app.py similarity index 94% rename from app.py rename to api_app.py index 9374a32..fc64879 100644 --- a/app.py +++ b/api_app.py @@ -6,8 +6,8 @@ import csv import ast import glob import json -app = Flask(__name__) -api = Api(app) +api_app = Flask(__name__) +api = Api(api_app) def read_config(): config = configparser.ConfigParser() @@ -55,4 +55,4 @@ data = read_logs(log_folder) api.add_resource(Packets, '/packets') # and '/locations' is our entry point for Locations if __name__ == '__main__': - app.run(debug=True, host='0.0.0.0') # run our Flask app + api_app.run(debug=True, host='0.0.0.0') # run our Flask app