activitypub: preload child objects when fetching timelines
[akkoma] / lib / pleroma / web / router.ex
index c56e4a421a98074f1cc7283e33fee3cb9d12ae75..befd382bac5b4e139d9ba02ab0b2e84742f81401 100644 (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