diff --git a/config/routes.rb b/config/routes.rb index baf4df1..193a577 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -32,10 +32,16 @@ Rails.application.routes.draw do end namespace :api, defaults: { format: :json } do - resources :doctrines, only: %i[index show] + resources :doctrines, only: %i[index show] 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