From f93b86aee5ced084defaebc4cffbd0e65bd1848c Mon Sep 17 00:00:00 2001 From: miteruzo Date: Sun, 11 Jan 2026 01:35:12 +0900 Subject: [PATCH] #214 --- backend/app/controllers/posts_controller.rb | 4 ---- backend/app/controllers/settings_controller.rb | 16 ---------------- backend/app/controllers/tags_controller.rb | 9 --------- backend/config/routes.rb | 6 ++---- 4 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 backend/app/controllers/settings_controller.rb diff --git a/backend/app/controllers/posts_controller.rb b/backend/app/controllers/posts_controller.rb index a3a4538..0792bf7 100644 --- a/backend/app/controllers/posts_controller.rb +++ b/backend/app/controllers/posts_controller.rb @@ -141,10 +141,6 @@ class PostsController < ApplicationController end end - # DELETE /posts/1 - def destroy - end - def changes id = params[:id] page = (params[:page].presence || 1).to_i diff --git a/backend/app/controllers/settings_controller.rb b/backend/app/controllers/settings_controller.rb deleted file mode 100644 index 379ca82..0000000 --- a/backend/app/controllers/settings_controller.rb +++ /dev/null @@ -1,16 +0,0 @@ -class SettingsController < ApplicationController - def index - end - - def show - end - - def create - end - - def update - end - - def destroy - end -end diff --git a/backend/app/controllers/tags_controller.rb b/backend/app/controllers/tags_controller.rb index 6597a43..7c1b250 100644 --- a/backend/app/controllers/tags_controller.rb +++ b/backend/app/controllers/tags_controller.rb @@ -34,13 +34,4 @@ class TagsController < ApplicationController head :not_found end end - - def create - end - - def update - end - - def destroy - end end diff --git a/backend/config/routes.rb b/backend/config/routes.rb index 31143a8..c7afe8f 100644 --- a/backend/config/routes.rb +++ b/backend/config/routes.rb @@ -1,7 +1,7 @@ Rails.application.routes.draw do resources :nico_tags, path: 'tags/nico', only: [:index, :update] - resources :tags do + resources :tags, only: [:index, :show] do collection do get :autocomplete get 'name/:name', action: :show_by_name @@ -30,7 +30,7 @@ Rails.application.routes.draw do end end - resources :posts do + resources :posts, only: [:index, :show, :create, :update] do collection do get :random get :changes @@ -49,6 +49,4 @@ Rails.application.routes.draw do post 'code/renew', action: :renew end end - - resources :settings end