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

Add route for zencoder job callback

parent 224e76ba
......@@ -5,6 +5,10 @@ Rails.application.routes.draw do
resources :profiles, except: [:index]
resources :contents, only: [:new, :create, :show]
scope :contents do
post '/:id/callback', to: 'contents#callback', as: :content_upload_callback
end
get 'states' => 'profiles#states', as: 'states'
get 'terms_of_use' => 'static_views#terms_of_use', as: 'terms_of_use'
......
......@@ -35,5 +35,8 @@ RSpec.describe ContentsController, type: :routing do
expect(:delete => "/contents/1").to_not route_to("contents#destroy", :id => "1")
end
it 'routes to #callback' do
expect(:post => '/contents/1/callback').to route_to('contents#callback', id: '1')
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