ぼざクリタグ広場 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.
 
 
 
 
 
 

90 lines
1.9 KiB

  1. Rails.application.routes.draw do
  2. resources :nico_tags, path: 'tags/nico', only: [:index, :update]
  3. scope 'tags/:parent_id/children', controller: :tag_children do
  4. post ':child_id', action: :create
  5. delete ':child_id', action: :destroy
  6. end
  7. resources :tags, only: [:index, :show, :update] do
  8. collection do
  9. get :autocomplete
  10. get :'with-depth', action: :with_depth
  11. scope :name do
  12. get ':name/deerjikists', action: :deerjikists_by_name
  13. get ':name/materials', action: :materials_by_name
  14. get ':name', action: :show_by_name
  15. end
  16. end
  17. member do
  18. get :deerjikists
  19. end
  20. end
  21. scope :preview, controller: :preview do
  22. get :title
  23. get :thumbnail
  24. end
  25. resources :wiki_pages, path: 'wiki', only: [:index, :show, :create, :update] do
  26. collection do
  27. get :search
  28. get :changes
  29. scope :title do
  30. get ':title/exists', action: :exists_by_title
  31. get ':title', action: :show_by_title
  32. end
  33. end
  34. member do
  35. get :exists
  36. get :diff
  37. end
  38. end
  39. resources :posts, only: [:index, :show, :create, :update] do
  40. collection do
  41. get :random
  42. get :changes
  43. get :versions, to: 'post_versions#index'
  44. end
  45. member do
  46. post :viewed
  47. delete :viewed, action: :unviewed
  48. end
  49. end
  50. resources :users, only: [:create, :update] do
  51. collection do
  52. post :verify
  53. get :me
  54. post 'code/renew', action: :renew
  55. end
  56. end
  57. resources :deerjikists, only: [] do
  58. collection do
  59. scope ':platform/:code' do
  60. get '', action: :show
  61. put '', action: :update
  62. delete '', action: :destroy
  63. end
  64. end
  65. end
  66. resources :theatres, only: [:show] do
  67. member do
  68. put :watching
  69. patch :next_post
  70. end
  71. resources :comments, controller: :theatre_comments, only: [:index, :create]
  72. end
  73. resources :materials, only: [:index, :show, :create, :update, :destroy]
  74. end