Browse Source

#214

pull/216/head
みてるぞ 1 month ago
parent
commit
f93b86aee5
4 changed files with 2 additions and 33 deletions
  1. +0
    -4
      backend/app/controllers/posts_controller.rb
  2. +0
    -16
      backend/app/controllers/settings_controller.rb
  3. +0
    -9
      backend/app/controllers/tags_controller.rb
  4. +2
    -4
      backend/config/routes.rb

+ 0
- 4
backend/app/controllers/posts_controller.rb View File

@@ -141,10 +141,6 @@ class PostsController < ApplicationController
end end
end end


# DELETE /posts/1
def destroy
end

def changes def changes
id = params[:id] id = params[:id]
page = (params[:page].presence || 1).to_i page = (params[:page].presence || 1).to_i


+ 0
- 16
backend/app/controllers/settings_controller.rb View File

@@ -1,16 +0,0 @@
class SettingsController < ApplicationController
def index
end

def show
end

def create
end

def update
end

def destroy
end
end

+ 0
- 9
backend/app/controllers/tags_controller.rb View File

@@ -34,13 +34,4 @@ class TagsController < ApplicationController
head :not_found head :not_found
end end
end end

def create
end

def update
end

def destroy
end
end end

+ 2
- 4
backend/config/routes.rb View File

@@ -1,7 +1,7 @@
Rails.application.routes.draw do Rails.application.routes.draw do
resources :nico_tags, path: 'tags/nico', only: [:index, :update] resources :nico_tags, path: 'tags/nico', only: [:index, :update]


resources :tags do
resources :tags, only: [:index, :show] do
collection do collection do
get :autocomplete get :autocomplete
get 'name/:name', action: :show_by_name get 'name/:name', action: :show_by_name
@@ -30,7 +30,7 @@ Rails.application.routes.draw do
end end
end end


resources :posts do
resources :posts, only: [:index, :show, :create, :update] do
collection do collection do
get :random get :random
get :changes get :changes
@@ -49,6 +49,4 @@ Rails.application.routes.draw do
post 'code/renew', action: :renew post 'code/renew', action: :renew
end end
end end

resources :settings
end end

Loading…
Cancel
Save