From 26ec5d2f54b259685172c113b23018944ebbcb04 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Thu, 7 Jul 2016 16:49:49 +0200 Subject: [PATCH] Listing of bookmarks needs a userkey --- digimarks.py | 8 ++++++-- templates/bookmarks.html | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 templates/bookmarks.html diff --git a/digimarks.py b/digimarks.py index b716e0b..8a195e7 100644 --- a/digimarks.py +++ b/digimarks.py @@ -58,8 +58,12 @@ class Bookmark(db.Model): def index(): return object_list('index.html', Bookmark.select()) -@app.route('/add/') -def add(): +@app.route('//') +def bookmarks(userkey): + return object_list('bookmarks.html', Bookmark.select()) + +@app.route('//add/') +def add(userkey): password = request.args.get('password') if password != PASSWORD: abort(404) diff --git a/templates/bookmarks.html b/templates/bookmarks.html new file mode 100644 index 0000000..0b30998 --- /dev/null +++ b/templates/bookmarks.html @@ -0,0 +1,34 @@ + + + + Bookmarks + + + +
+
+ + + + +
+
+ +