Files
velour/config/routes.rb
Dan Milne 88a906064f
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled
Much base work started
2025-10-31 14:36:14 +11:00

40 lines
850 B
Ruby

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