diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-23 01:57:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-23 01:57:23 +0200 |
commit | 293972f716476933df2b665ad755cafe4d29d82d (patch) | |
tree | 6719153a554c918800d8eb3f1624d9e0d666318c /app/controllers/api | |
parent | 9c8e602163811fc9a21c5ae78d53d46d7dbc8db7 (diff) |
New API: GET /api/v1/custom_emojis to get a server's custom emojis (#5051)
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/custom_emojis_controller.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/api/v1/custom_emojis_controller.rb b/app/controllers/api/v1/custom_emojis_controller.rb new file mode 100644 index 000000000..4dd77fb55 --- /dev/null +++ b/app/controllers/api/v1/custom_emojis_controller.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class Api::V1::CustomEmojisController < Api::BaseController + respond_to :json + + def index + render json: CustomEmoji.local, each_serializer: REST::CustomEmojiSerializer + end +end |