refactor emoji api with fixes

This commit is contained in:
Alexander Strizhakov 2020-03-28 13:34:32 +03:00
commit 342f55fb92
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
9 changed files with 1327 additions and 779 deletions

View file

@ -221,12 +221,13 @@ defmodule Pleroma.Web.Router do
delete("/:name", EmojiAPIController, :delete)
# Note: /download_from downloads and saves to instance, not to requester
post("/download_from", EmojiAPIController, :save_from)
post("/download_from", EmojiAPIController, :download_from)
end
# Pack info / downloading
scope "/packs" do
get("/", EmojiAPIController, :list_packs)
get("/:name", EmojiAPIController, :show)
get("/:name/download_shared/", EmojiAPIController, :download_shared)
get("/list_from", EmojiAPIController, :list_from)