mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2025-01-16 11:34:04 +01:00
Run rubocop -a
This commit is contained in:
parent
12f0a5333f
commit
54cf5721ac
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue