Commit 3b25a532 authored by Yohan's avatar Yohan

Merge branch 'mark-all-seen' into 'master'

Add an endpoint to mark all entries as seen

See merge request !5
parents 8da54fc3 5c16a093
......@@ -94,6 +94,12 @@ async def update_entry(req, resp, link):
resp.json = entry.json
@app.route("/mark-all-seen", methods=["POST"])
async def mark_all_seen(req, resp):
updated = Entry.update(seen=True).where(Entry.seen == False).execute()
resp.json = {"updated": updated}
@app.route("/myfeed/atom")
async def myfeed(req, resp):
feed = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment