This commit is contained in:
2025-06-15 00:41:27 +09:00
parent 32ed235807
commit 50a9313525
2 changed files with 13 additions and 27 deletions
+10 -10
View File
@@ -1,4 +1,14 @@
Rails.application.routes.draw do
get 'tags/autocomplete', to: 'tags#autocomplete'
post 'posts/:id/viewed', to: 'posts#viewed'
delete 'posts/:id/viewed', to: 'posts#unviewed'
get 'preview/title', to: 'preview#title'
get 'preview/thumbnail', to: 'preview#thumbnail'
get 'wiki/title/:title', to: 'wiki_pages#show_by_title'
get 'wiki/:id', to: 'wiki_pages#show'
post 'wiki', to: 'wiki_pages#create'
put 'wiki/:id', to: 'wiki_pages#update'
resources :posts
resources :ip_addresses
resources :nico_tag_relations
@@ -15,16 +25,6 @@ Rails.application.routes.draw do
end
end
get 'tags/autocomplete', to: 'tags#autocomplete'
post 'posts/:id/viewed', to: 'posts#viewed'
delete 'posts/:id/viewed', to: 'posts#unviewed'
get 'preview/title', to: 'preview#title'
get 'preview/thumbnail', to: 'preview#thumbnail'
get 'wiki/title/:title', to: 'wiki_pages#show_by_title'
get 'wiki/:id', to: 'wiki_pages#show'
post 'wiki', to: 'wiki_pages#create'
put 'wiki/:id', to: 'wiki_pages#update'
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.