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.
 
 
 
 
 

27 lines
648 B

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