Add a way to create emoji packs via an endpoint

This commit is contained in:
Ekaterina Vaartis 2019-08-28 19:29:01 +03:00
commit f5131540dc
3 changed files with 56 additions and 0 deletions

View file

@ -220,6 +220,7 @@ defmodule Pleroma.Web.Router do
post("/update_file/:pack_name", EmojiAPIController, :update_file)
post("/update_metadata/:pack_name", EmojiAPIController, :update_metadata)
post("/create/:name", EmojiAPIController, :create)
delete("/delete/:name", EmojiAPIController, :delete)
post("/download_from", EmojiAPIController, :download_from)
end