diff options
author | Ilja <ilja@ilja.space> | 2022-06-11 09:38:43 +0200 |
---|---|---|
committer | Ilja <ilja@ilja.space> | 2022-06-21 12:10:27 +0200 |
commit | 34a98990dba1e021a75a23b225cff22af23f5ca2 (patch) | |
tree | a642e0f208793e7aa94a52c9e42fb53732a4738c /lib | |
parent | 4cb0dbb5dce93ebc6c638c99eab13d0d2c02667c (diff) | |
download | pleroma-34a98990dba1e021a75a23b225cff22af23f5ca2.tar.gz pleroma-34a98990dba1e021a75a23b225cff22af23f5ca2.zip |
last off :statuses_read
From the endpoints left to do, I believe these should be under :statuses_read.
These should be the last for that privilege for this MR
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/router.ex | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 68719c570..13e8141e4 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -292,6 +292,10 @@ defmodule Pleroma.Web.Router do get("/chats/:id", ChatController, :show) get("/chats/:id/messages", ChatController, :messages) + + get("/instances/:instance/statuses", InstanceController, :list_statuses) + + get("/statuses/:id", StatusController, :show) end # AdminAPI: admins and mods (staff) can perform these actions (if privileged by role) @@ -345,10 +349,8 @@ defmodule Pleroma.Web.Router do scope "/api/v1/pleroma/admin", Pleroma.Web.AdminAPI do pipe_through(:admin_api) - get("/instances/:instance/statuses", InstanceController, :list_statuses) delete("/instances/:instance", InstanceController, :delete) - get("/statuses/:id", StatusController, :show) put("/statuses/:id", StatusController, :update) delete("/statuses/:id", StatusController, :delete) |