pleroma api: hook up scrobbler controller

This commit is contained in:
Ariadne Conill 2019-09-28 02:12:12 +00:00
commit 7cad6ea67a
5 changed files with 136 additions and 1 deletions

View file

@ -300,6 +300,17 @@ defmodule Pleroma.Web.Router do
patch("/conversations/:id", PleromaAPIController, :update_conversation)
post("/notifications/read", PleromaAPIController, :read_notification)
end
scope [] do
pipe_through(:oauth_write)
post("/now-playing", PleromaAPIController, :update_now_playing)
end
end
scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
pipe_through([:api, :oauth_read_or_public])
get("/accounts/:id/now-playing", PleromaAPIController, :user_now_playing)
end
scope "/api/v1", Pleroma.Web.MastodonAPI do