Enhance reports in Pleroma API: index, show

This commit is contained in:
Haelwenn (lanodan) Monnier 2021-01-25 20:15:33 +01:00
commit ff72ce31ca
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
6 changed files with 286 additions and 2 deletions

View file

@ -368,6 +368,12 @@ defmodule Pleroma.Web.Router do
get("/statuses/:id/reactions", EmojiReactionController, :index)
end
scope "/api/v0/pleroma", Pleroma.Web.PleromaAPI do
pipe_through(:authenticated_api)
get("/reports", ReportController, :index)
get("/reports/:id", ReportController, :show)
end
scope "/api/v1/pleroma", Pleroma.Web.PleromaAPI do
scope [] do
pipe_through(:authenticated_api)