diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-20 20:11:50 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-20 20:11:50 -0700 |
| commit | 8fa71f5e5200c91ab3916154a9b00e75c4064a2f (patch) | |
| tree | d2d3e1c09c43798c56499086be4bf146c615d4e2 /config/routes.rb | |
| parent | 8005a209624eec93ead4b372733cd8816d54a7c2 (diff) | |
add routes to companies/:company_id/licenses
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index a9b6923..b61e488 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,8 @@ CodeChallengeMo::Application.routes.draw do namespace :v1, path: 'v1' do resources :licenses, only: [:index, :show] + resources :companies, only: [] do + resources :licenses, controller: 'company_licenses', only: [:index] + end end end |
