ぼざクリ タグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.6 KiB

  1. Rails.application.routes.draw do
  2. get 'tags/nico', to: 'nico_tags#index'
  3. put 'tags/nico/:id', to: 'nico_tags#update'
  4. get 'tags/autocomplete', to: 'tags#autocomplete'
  5. get 'tags/name/:name', to: 'tags#show_by_name'
  6. get 'posts/random', to: 'posts#random'
  7. post 'posts/:id/viewed', to: 'posts#viewed'
  8. delete 'posts/:id/viewed', to: 'posts#unviewed'
  9. get 'preview/title', to: 'preview#title'
  10. get 'preview/thumbnail', to: 'preview#thumbnail'
  11. get 'wiki/title/:title', to: 'wiki_pages#show_by_title'
  12. get 'wiki/search', to: 'wiki_pages#search'
  13. get 'wiki/changes', to: 'wiki_pages#changes'
  14. get 'wiki/:id/diff', to: 'wiki_pages#diff'
  15. get 'wiki/:id', to: 'wiki_pages#show'
  16. get 'wiki', to: 'wiki_pages#index'
  17. post 'wiki', to: 'wiki_pages#create'
  18. put 'wiki/:id', to: 'wiki_pages#update'
  19. post 'users/code/renew', to: 'users#renew'
  20. resources :posts
  21. resources :ip_addresses
  22. resources :nico_tag_relations
  23. resources :post_tags
  24. resources :settings
  25. resources :tag_aliases
  26. resources :tags
  27. resources :user_ips
  28. resources :user_post_views
  29. resources :users, only: [:create, :update] do
  30. collection do
  31. post :verify
  32. get :me
  33. end
  34. end
  35. # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
  36. # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
  37. # Can be used by load balancers and uptime monitors to verify that the app is live.
  38. # get "up" => "rails/health#show", as: :rails_health_check
  39. # Defines the root path route ("/")
  40. # root "posts#index"
  41. end