-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Sitemap for current and future development #378
Labels
Comments
Playback
Queue Management
Library Management
Content
Search
Recommendations
Social Features
User Management
Notifications
Admin (Optional for application management)
Additional Features
|
Rails.application.routes.draw do
# Playback
resource :player, only: [:show]
namespace :playback do
post :play
post :pause
post :next
post :previous
post :volume
post :mute
post :unmute
post :shuffle
post :repeat
post :context
end
# Queue Management
resources :queue, only: [:show, :destroy] do
collection do
post :recordings
post :playlists
post :tandas
patch :reorder
end
member do
get :tandas
post 'tandas/:id/like', to: 'queue#like_tanda'
delete 'tandas/:id/dismiss', to: 'queue#dismiss_tanda'
end
namespace :filter do
get :familiar
get :discover
get :same_mood
get :same_orchestra
get :same_period
end
end
# Library Management
resources :library, only: [:index, :create, :destroy] do
collection do
patch :reorder
post :pin
end
member do
delete :pin
end
end
# Content
resources :recordings, only: [:index, :show] do
member do
post :like
delete :like
post :dismiss
get :related
end
end
resources :playlists, only: [:index, :show, :create] do
member do
post :recordings
delete 'recordings/:recording_id', to: 'playlists#remove_recording'
get :related
get :suggestions
end
end
resources :tandas, only: [:index, :show, :create] do
member do
post :recordings
delete 'recordings/:recording_id', to: 'tandas#remove_recording'
get :related
get :suggestions
post :like
delete :dismiss
end
end
resources :orchestras, only: [:index, :show] do
member do
get :related
post :recordings
end
end
# Search
namespace :search do
get '/', to: 'search#index'
get :recordings
get :playlists
get :tandas
get :orchestras
end
# Recommendations
namespace :discover do
get '/', to: 'discover#index'
get :new_releases
get :trending
get :for_you
end
# Social Features
resources :users, only: [] do
member do
post :follow
delete :follow
get :playlists
end
end
post :share, to: 'share#create'
# User Management
resource :profile, only: [:show, :update]
resource :preferences, only: [:show, :update]
# Notifications
resources :notifications, only: [:index, :update, :destroy]
# Admin
namespace :admin do
resources :recordings, only: [:create, :update, :destroy]
resources :users, only: [:index, :update, :destroy]
end
# Additional Features
resources :history, only: [:index, :destroy]
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The resource routing should be reviewed. In this task we should review the current routing, propose any changes/optomizations for the current routes and then also create routing for future core features.
The text was updated successfully, but these errors were encountered: