diff --git a/app/controllers/api/external_entries_controller.rb b/app/controllers/api/external_entries_controller.rb deleted file mode 100644 index 34d4864dc82..00000000000 --- a/app/controllers/api/external_entries_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -# frozen_string_literal: true - -class API::ExternalEntriesController < API::BaseController - def index; end -end diff --git a/app/views/api/external_entries/_external_entry.json.jbuilder b/app/views/api/external_entries/_external_entry.json.jbuilder deleted file mode 100644 index 17afa8d4396..00000000000 --- a/app/views/api/external_entries/_external_entry.json.jbuilder +++ /dev/null @@ -1,6 +0,0 @@ -json.(external_entry, :title, :url, :summary, :published_at) -json.thumbnailUrl external_entry.thumbnail_url - -json.user do - json.partial! 'api/users/user', user: external_entry.user -end diff --git a/app/views/api/external_entries/index.json.jbuilder b/app/views/api/external_entries/index.json.jbuilder deleted file mode 100644 index 4d132b40b75..00000000000 --- a/app/views/api/external_entries/index.json.jbuilder +++ /dev/null @@ -1,2 +0,0 @@ -json.external_entries @external_entries, partial: 'api/external_entries/external_entry', as: :external_entry -json.total_pages @external_entries.total_pages if @external_entries.respond_to? :total_pages diff --git a/config/routes/api.rb b/config/routes/api.rb index 6a579e547e6..46ad223c1ee 100644 --- a/config/routes/api.rb +++ b/config/routes/api.rb @@ -89,7 +89,6 @@ resources :books, only: %i(index) resources :courses, only: %i(index) resources :footprints, only: %i(index) - resources :external_entries, only: %i(index) resources :survey_question_listings, only: %i() do resource :position, only: %i(update), controller: "survey_question_listings/position" end