File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ module Doubtfire
1818 class Application < Rails ::Application
1919 config . load_defaults 7.0
2020
21+ # Remove Action Mailbox and Active Storage routes - not used
22+ initializer ( :remove_action_mailbox_and_activestorage_routes , after : :add_routing_paths ) { |app |
23+ app . routes_reloader . paths . delete_if { |path | path =~ /activestorage/ }
24+ app . routes_reloader . paths . delete_if { |path | path =~ /actionmailbox/ }
25+ }
26+
2127 # Load .env variables
2228 Dotenv ::Rails . load
2329
Original file line number Diff line number Diff line change 11require 'sidekiq/web'
22
33Doubtfire ::Application . routes . draw do
4- devise_for :users
54 get 'api/submission/unit/:id/portfolio' , to : 'portfolio_downloads#index'
65 get 'api/submission/unit/:id/task_definitions/:task_def_id/download_submissions' , to : 'task_downloads#index'
76 get 'api/submission/unit/:id/task_definitions/:task_def_id/student_pdfs' , to : 'task_submission_pdfs#index'
You can’t perform that action at this time.
0 commit comments