summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-09 19:43:03 -0700
committermo khan <mo@mokhan.ca>2015-02-09 19:43:03 -0700
commit594d37bb40f3e3e0f15553383cf2a305d4d6742e (patch)
tree6236972f334d3ad778fbd51948d9635ae1226936 /config
parent72a1483c8f546fae6c93dcdf91cfd47c37bc2f90 (diff)
extract api.
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb7
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