Update data on API call
Oops!
This commit is contained in:
parent
795d2ef403
commit
fb027194e8
|
@ -44,6 +44,7 @@ def read_logs(log_folder):
|
||||||
|
|
||||||
class Packets(Resource):
|
class Packets(Resource):
|
||||||
def get(self):
|
def get(self):
|
||||||
|
data = read_logs(log_folder)
|
||||||
return {'data': data}, 200 # return data and 200 OK code
|
return {'data': data}, 200 # return data and 200 OK code
|
||||||
|
|
||||||
# Read config
|
# Read config
|
||||||
|
|
Loading…
Reference in New Issue
Block a user