diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/application.rb | 1 | ||||
| -rw-r--r-- | config/routes.rb | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/config/application.rb b/config/application.rb index a4c3856..8ffec33 100644 --- a/config/application.rb +++ b/config/application.rb @@ -30,5 +30,6 @@ module Malwer # Do not swallow errors in after_commit/after_rollback callbacks. config.active_record.raise_in_transactional_callbacks = true + config.lograge.enabled = true end end diff --git a/config/routes.rb b/config/routes.rb index 3d664d0..6cd139f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,6 +5,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 |
