Add an API endpoint to install a new frontend

This commit is contained in:
Egor Kislitsyn 2020-10-27 19:20:04 +04:00
commit 03e306785b
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
10 changed files with 448 additions and 107 deletions

View file

@ -223,6 +223,9 @@ defmodule Pleroma.Web.Router do
get("/chats/:id", ChatController, :show)
get("/chats/:id/messages", ChatController, :messages)
delete("/chats/:id/messages/:message_id", ChatController, :delete_message)
get("/frontends", FrontendController, :index)
post("/frontends", FrontendController, :install)
end
scope "/api/pleroma/emoji", Pleroma.Web.PleromaAPI do