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.
 
 
 
 
 

63 lines
1.5 KiB

Rails.application.routes.draw do
devise_for :users
root to: "documents#index"
resources :doctrines, only: %i[index show new edit] do
get :search, on: :collection
scope module: :doctrine do
resources :annotations, only: %i[new edit 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: :html } do
resources :doctrines, only: %i[new edit]
end
namespace :api, defaults: { format: :json } do
resources :doctrines do
get :suggested_contents, on: :collection
scope module: :doctrine do
resources :annotations do
get :search, on: :collection
end
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
authenticate :user do
require "sidekiq/web"
mount Sidekiq::Web => "/sidekiq"
end
end