Allow importing old (emoji.txt / plain) packs from the filesystem

This commit is contained in:
Ekaterina Vaartis 2019-09-10 21:16:30 +03:00
commit 9eb2ee4df0
4 changed files with 109 additions and 0 deletions

View file

@ -218,6 +218,8 @@ defmodule Pleroma.Web.Router do
# Modifying packs
pipe_through([:admin_api, :oauth_write])
post("/import_from_fs", EmojiAPIController, :import_from_fs)
post("/update_file/:pack_name", EmojiAPIController, :update_file)
post("/update_metadata/:pack_name", EmojiAPIController, :update_metadata)
post("/create/:name", EmojiAPIController, :create)