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):
|
||||
def get(self):
|
||||
data = read_logs(log_folder)
|
||||
return {'data': data}, 200 # return data and 200 OK code
|
||||
|
||||
# Read config
|
||||
|
|
Loading…
Reference in New Issue
Block a user