You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 lines
1.1 KiB

Rails.application.routes.draw do
devise_for :users
root to: "home#index"
resources :doctrines, only: %i[index show] do
get :search, on: :collection
scope module: :doctrine do
resources :annotations, only: %i[create update destroy]
end
end
resources :documents, only: %i[index show] do
get :search, on: :collection
scope module: :document do
resources :doctrines, only: %i[show]
end
end
resources :decisions, only: %i[index]
resources :subject_indexes do
member do
get :doctrines
end
end
resources :reports, only: %i[index]
namespace :api, defaults: { format: :json } do
resources :doctrines do
scope module: :doctrine do
resources :annotations
end
end
resources :documents, only: %i[index show]
resources :subjects, only: %i[index]
resources :jurisprudences, only: %i[index show] do
get :years, on: :collection
scope module: :jurisprudence do
resources :cited_ins, only: %i[index show]
resources :cross_references, only: %i[index show]
resources :doctrines, only: %i[index show]
end
end
end
end