From 37d57db7729ed078c4dd36bb3f1868f60659709f Mon Sep 17 00:00:00 2001 From: W1CDN Date: Sat, 8 Apr 2023 17:07:09 -0500 Subject: [PATCH] Rename first application. --- app.py => api_app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename app.py => api_app.py (94%) 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