Run rubocop -a

This commit is contained in:
Jeremy Kescher 2023-05-09 23:41:48 +02:00
parent 12f0a5333f
commit 54cf5721ac
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -18,8 +18,8 @@ namespace :api, format: false do
# foreign custom emojis are encoded as shortcode@domain.tld
# the constraint prevents rails from interpreting the ".tld" as a filename extension
post '/react/:id', to: 'reactions#create', constraints: { id: /[^\/]+/ }
post '/unreact/:id', to: 'reactions#destroy', constraints: { id: /[^\/]+/ }
post '/react/:id', to: 'reactions#create', constraints: { id: %r{[^/]+} }
post '/unreact/:id', to: 'reactions#destroy', constraints: { id: %r{[^/]+} }
resource :bookmark, only: :create
post :unbookmark, to: 'bookmarks#destroy'