Skip to content

Instantly share code, notes, and snippets.

@julik
Created October 28, 2016 11:34
Show Gist options
  • Save julik/4fbfac603fe0f658f106e4926a56bf38 to your computer and use it in GitHub Desktop.
Save julik/4fbfac603fe0f658f106e4926a56bf38 to your computer and use it in GitHub Desktop.
namespace :app, defaults: {format: :json} do
namespace :v1 do
resource :pro, only: [:create, :show, :destroy]
resource :application, only: [:show] do
get :messages
post :statistics
post :configuration
end
resources :people, only: [:index, :create, :update, :destroy]
resources :payloads, shallow: true, only: [:create, :destroy] do
resources :files, only: [:create]
member do
post :stats
put :finish
end
end
resources :files, only: [:update] do
member do
put :finaish
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment