From 0e1d02c99d76f7c5e9faa64865acf5e51bfb8585 Mon Sep 17 00:00:00 2001 From: nishitatsu-dev Date: Tue, 21 May 2024 14:31:21 +0900 Subject: [PATCH] =?UTF-8?q?api=E9=96=A2=E9=80=A3=E3=81=AE=E3=80=8C?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=80=8D=E3=81=A8=E3=80=8C?= =?UTF-8?q?=E3=83=AB=E3=83=BC=E3=83=86=E3=82=A3=E3=83=B3=E3=82=B0=E3=80=8D?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4=E3=80=82author=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/external_entries_controller.rb | 5 ----- .../api/external_entries/_external_entry.json.jbuilder | 6 ------ app/views/api/external_entries/index.json.jbuilder | 2 -- config/routes/api.rb | 1 - 4 files changed, 14 deletions(-) delete mode 100644 app/controllers/api/external_entries_controller.rb delete mode 100644 app/views/api/external_entries/_external_entry.json.jbuilder delete mode 100644 app/views/api/external_entries/index.json.jbuilder 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