diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-09 19:43:03 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-09 19:43:03 -0700 |
| commit | 594d37bb40f3e3e0f15553383cf2a305d4d6742e (patch) | |
| tree | 6236972f334d3ad778fbd51948d9635ae1226936 /config | |
| parent | 72a1483c8f546fae6c93dcdf91cfd47c37bc2f90 (diff) | |
extract api.
Diffstat (limited to 'config')
| -rw-r--r-- | config/routes.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index ae0a4cb..9092e9b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -4,6 +4,13 @@ Rails.application.routes.draw do resources :files, only: [:index, :show], controller: 'agents/files' end + namespace :api do + resources :agents, only: [:create] do + resources :events, only: [:create], controller: 'agents/events' + resources :files, only: [:show], controller: 'agents/files' + end + end + resources :dispositions root 'agents#index' end |
