Implement settings api

This commit is contained in:
Tusooa Zhu 2022-07-16 01:20:25 -04:00
commit 8371fd8ca2
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
4 changed files with 284 additions and 0 deletions

View file

@ -458,6 +458,13 @@ defmodule Pleroma.Web.Router do
get("/birthdays", AccountController, :birthdays)
end
scope [] do
pipe_through(:authenticated_api)
get("/settings/:app", SettingsController, :show)
patch("/settings/:app", SettingsController, :update)
end
post("/accounts/confirmation_resend", AccountController, :confirmation_resend)
end