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 + + + +
+
+ + + + +
+
+ +