Allow to mark a single notification as read

This commit is contained in:
eugenijm 2019-03-15 20:06:28 +03:00
commit 43fb03be5a
5 changed files with 62 additions and 0 deletions

View file

@ -190,6 +190,12 @@ defmodule Pleroma.Web.Router do
post("/blocks_import", UtilController, :blocks_import)
post("/follow_import", UtilController, :follow_import)
end
scope [] do
pipe_through(:oauth_read)
post("/notifications/read", UtilController, :notifications_read)
end
end
scope "/oauth", Pleroma.Web.OAuth do