Add emoji react api POST method (same PUT)

This commit is contained in:
KMY 2023-02-25 11:14:16 +09:00
parent 15bc0df759
commit d7a251edc9
3 changed files with 10 additions and 6 deletions

View file

@ -459,7 +459,7 @@ Rails.application.routes.draw do
post :translate, to: 'translations#create'
resources :emoji_reactions, only: :update, constraints: { id: /[^\/]+/ }
resources :emoji_reactions, only: [:create, :update], constraints: { id: /[^\/]+/ }
post :emoji_unreaction, to: 'emoji_reactions#destroy'
end