projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
560dbad
)
Conversations: Use correct oauth paths for extended api.
author
lain
<lain@soykaf.club>
Wed, 14 Aug 2019 13:55:43 +0000
(15:55 +0200)
committer
lain
<lain@soykaf.club>
Wed, 14 Aug 2019 13:55:43 +0000
(15:55 +0200)
lib/pleroma/web/router.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/router.ex
b/lib/pleroma/web/router.ex
index 9759268f9ac37e4859461005915bd0180539f239..1eb6f7b9dedc452a298df3802ee7a24163436c28 100644
(file)
--- a/
lib/pleroma/web/router.ex
+++ b/
lib/pleroma/web/router.ex
@@
-263,9
+263,13
@@
defmodule Pleroma.Web.Router do
pipe_through(:authenticated_api)
scope [] do
- pipe_through(:oauth_
write
)
+ pipe_through(:oauth_
read
)
get("/conversations/:id/statuses", PleromaAPIController, :conversation_statuses)
get("/conversations/:id", PleromaAPIController, :conversation)
+ end
+
+ scope [] do
+ pipe_through(:oauth_write)
patch("/conversations/:id", PleromaAPIController, :update_conversation)
end
end