Enhance reports in Pleroma API: index, show
This commit is contained in:
parent
046bcf1bf6
commit
ff72ce31ca
6 changed files with 286 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue