From: lain Date: Wed, 2 Oct 2019 11:27:55 +0000 (+0200) Subject: Merge remote-tracking branch 'origin/develop' into reactions X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=557223b2b5b60956d3e1a19e9fdae9e9798c4fe2;p=akkoma Merge remote-tracking branch 'origin/develop' into reactions --- 557223b2b5b60956d3e1a19e9fdae9e9798c4fe2 diff --cc lib/pleroma/web/router.ex index 09cbca766,a355a14bd..eae1f676b --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@@ -287,25 -287,27 +287,36 @@@ defmodule Pleroma.Web.Router d end scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do + pipe_through(:api) + + get("/statuses/:id/emoji_reactions_by", PleromaAPIController, :emoji_reactions_by) + end + + scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do + pipe_through(:authenticated_api) + scope [] do + pipe_through(:authenticated_api) pipe_through(:oauth_read) get("/conversations/:id/statuses", PleromaAPIController, :conversation_statuses) get("/conversations/:id", PleromaAPIController, :conversation) end scope [] do + pipe_through(:authenticated_api) pipe_through(:oauth_write) patch("/conversations/:id", PleromaAPIController, :update_conversation) + post("/statuses/:id/react_with_emoji", PleromaAPIController, :react_with_emoji) post("/notifications/read", PleromaAPIController, :read_notification) + + patch("/accounts/update_avatar", AccountController, :update_avatar) + patch("/accounts/update_banner", AccountController, :update_banner) + patch("/accounts/update_background", AccountController, :update_background) + + get("/mascot", MascotController, :show) + put("/mascot", MascotController, :update) + + post("/scrobble", ScrobbleController, :new_scrobble) end scope [] do