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

89 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. end
  44. member do
  45. post :viewed
  46. delete :viewed, action: :unviewed
  47. end
  48. end
  49. resources :users, only: [:create, :update] do
  50. collection do
  51. post :verify
  52. get :me
  53. post 'code/renew', action: :renew
  54. end
  55. end
  56. resources :deerjikists, only: [] do
  57. collection do
  58. scope ':platform/:code' do
  59. get '', action: :show
  60. put '', action: :update
  61. delete '', action: :destroy
  62. end
  63. end
  64. end
  65. resources :theatres, only: [:show] do
  66. member do
  67. put :watching
  68. patch :next_post
  69. end
  70. resources :comments, controller: :theatre_comments, only: [:index, :create]
  71. end
  72. resources :materials, only: [:index, :show, :create, :update, :destroy]
  73. end