This commit is contained in:
vera 2021-02-07 00:26:29 -08:00
parent c12df14684
commit 87172b3c99

View file

@ -182,6 +182,7 @@ def node(node,user_list=""):
)
@bp.route('/node/<node>.json')
@bp.route('/node/<node>/uprank/<user_list>.json')
def node_json(node,user_list=""):
default_rank = ['agora', 'flancian']
rank = user_list.split(",")
@ -273,6 +274,10 @@ def users():
def journals():
return render_template('nodes.html', header="Journals", nodes=db.all_journals())
@bp.route('/journals.json')
def journals_json():
return jsonify(jsons.dump(db.all_journals()))
@bp.route('/asset/<user>/<asset>')
def asset(user, asset):
# An asset is a binary in someone's garden/<user>/assets directory.