Commit d29feb90 authored by marcheing's avatar marcheing Committed by Diego de Araújo Martinez Camarinha

Remove id from zencoder callback route

Signed-off-by: Diego de Araújo Martinez Camarinha's avatarDiego Araújo <diegoamc@protonmail.ch>
parent 1b671b23
......@@ -6,7 +6,7 @@ Rails.application.routes.draw do
resources :contents, only: [:new, :create, :show]
scope :contents do
post '/:id/callback', to: 'contents#callback', as: :content_upload_callback
post '/callback', to: 'contents#callback', as: :content_upload_callback
end
get 'states' => 'profiles#states', as: 'states'
......
......@@ -36,7 +36,7 @@ RSpec.describe ContentsController, type: :routing do
end
it 'routes to #callback' do
expect(:post => '/contents/1/callback').to route_to('contents#callback', id: '1')
expect(:post => '/contents/callback').to route_to('contents#callback')
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment