Fix glitch-toc route

This commit is contained in:
KMY 2023-05-15 08:22:57 +09:00
parent 5a638a9551
commit b183089a48
2 changed files with 3 additions and 3 deletions
config/routes

View file

@ -34,8 +34,8 @@ namespace :api, format: false do
resources :emoji_reactions, only: [:create, :update, :destroy], constraints: { id: %r{[^/]+} }
post :emoji_unreaction, to: 'emoji_reactions#destroy'
post :react, to: 'emoji_reactions#create'
post :unreact, to: 'emoji_reactions#destroy'
post '/react/:id', to: 'emoji_reactions#create', constraints: { id: %r{[^/]+} }
post '/unreact/:id', to: 'emoji_reactions#destroy', constraints: { id: %r{[^/]+} }
end
member do