From f5508a012da81203b1910d96cf2a888c1883af56 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 5 Jan 2021 14:04:31 -0800 Subject: [PATCH] add addtl meta to api list --- suchwow/routes/api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/suchwow/routes/api.py b/suchwow/routes/api.py index 8cb8d73..4139b0c 100644 --- a/suchwow/routes/api.py +++ b/suchwow/routes/api.py @@ -21,7 +21,10 @@ def api_list(): 'submitter': post.submitter, 'address': address, 'title': post.title, - 'href': url_for('post.read', id=post.id, _external=True) + 'text': post.text, + 'href': url_for('post.read', id=post.id, _external=True), + 'id': post.id, + 'timestamp': post.timestamp } all_posts.append(payload) return jsonify(all_posts)