Add OpenAPI spec for PleromaAPI.EmojiAPIController

This commit is contained in:
Egor Kislitsyn 2020-05-14 19:21:51 +04:00
commit 6e4de715b3
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
6 changed files with 541 additions and 96 deletions

View file

@ -231,7 +231,8 @@ defmodule Pleroma.Web.Router do
# Pack info / downloading
scope "/packs" do
get("/", EmojiAPIController, :list)
pipe_through(:api)
get("/", EmojiAPIController, :index)
get("/:name", EmojiAPIController, :show)
get("/:name/archive", EmojiAPIController, :archive)
end