1
0
mirror of https://github.com/aquatix/digimarks.git synced 2025-12-06 23:05:10 +01:00

Listing of bookmarks needs a userkey

This commit is contained in:
2016-07-07 16:49:49 +02:00
parent 6537012317
commit 26ec5d2f54
2 changed files with 40 additions and 2 deletions

View File

@@ -58,8 +58,12 @@ class Bookmark(db.Model):
def index():
return object_list('index.html', Bookmark.select())
@app.route('/add/')
def add():
@app.route('/<userkey>/')
def bookmarks(userkey):
return object_list('bookmarks.html', Bookmark.select())
@app.route('/<userkey>/add/')
def add(userkey):
password = request.args.get('password')
if password != PASSWORD:
abort(404)