add addtl meta to api list

This commit is contained in:
lza_menace 2021-01-05 14:04:31 -08:00
parent 65414c4e00
commit f5508a012d
1 changed files with 4 additions and 1 deletions

View File

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