Rails.application.routes.draw do # Health check get "up" => "rails/health#show", as: :rails_health_check # Root - Phase 1: Storage locations as main entry root "storage_locations#index" # Phase 1: Storage locations focused routes resources :storage_locations, only: [:index, :show, :create, :destroy] do member do post :scan end end resources :works, only: [:index, :show] do resources :videos, only: [:show] end resources :videos, only: [] do member do get :stream patch :playback_position post :retry_processing end resources :playback_sessions, only: [:create] end # Real-time job progress resources :jobs, only: [:show] do member do get :progress end end # Rails authentication routes resource :session resources :passwords, param: :token end