Much base work started
This commit is contained in:
@@ -1,14 +1,39 @@
|
||||
Rails.application.routes.draw do
|
||||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
||||
|
||||
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
||||
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
||||
# Health check
|
||||
get "up" => "rails/health#show", as: :rails_health_check
|
||||
|
||||
# Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
|
||||
# get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
|
||||
# get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
|
||||
# Root - Phase 1: Storage locations as main entry
|
||||
root "storage_locations#index"
|
||||
|
||||
# Defines the root path route ("/")
|
||||
# root "posts#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
|
||||
|
||||
Reference in New Issue
Block a user