Commit 7e872d28 authored by Antoine Catton's avatar Antoine Catton

Add logList function on wordpress agent.

parent 46c64ae5
...@@ -355,6 +355,17 @@ def get_id(): ...@@ -355,6 +355,17 @@ def get_id():
return response return response
@app.route('/logList')
def log_list():
session = Session()
response = make_response(json.dumps(
[c.title for c in session.query(Component.title).all()]
))
response.headers['Content-Type'] = 'application/json'
return response
def main(): def main():
global app global app
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment