Rename first application.
This commit is contained in:
parent
939e96ad7e
commit
37d57db772
|
@ -6,8 +6,8 @@ import csv
|
||||||
import ast
|
import ast
|
||||||
import glob
|
import glob
|
||||||
import json
|
import json
|
||||||
app = Flask(__name__)
|
api_app = Flask(__name__)
|
||||||
api = Api(app)
|
api = Api(api_app)
|
||||||
|
|
||||||
def read_config():
|
def read_config():
|
||||||
config = configparser.ConfigParser()
|
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
|
api.add_resource(Packets, '/packets') # and '/locations' is our entry point for Locations
|
||||||
|
|
||||||
if __name__ == '__main__':
|
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
|
Loading…
Reference in New Issue
Block a user