add addtl meta to api list

graphs-n-shit
lza_menace 4 years ago
parent 65414c4e00
commit f5508a012d

@ -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)

Loading…
Cancel
Save