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.
|
module Api |
|
class DocumentsController < BaseController |
|
include JurisprudenceSearch |
|
|
|
authorize_resource :document, class: "Cdao::Document", only: %i[index] |
|
|
|
def index |
|
search = jurisprudence_search(search_params) |
|
|
|
@jurisprudences = search.results |
|
|
|
respond_with @jurisprudences |
|
end |
|
end |
|
end
|
|
|