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

88 lines
1.8 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', action: :show_by_name
  14. end
  15. end
  16. member do
  17. get :deerjikists
  18. end
  19. end
  20. scope :preview, controller: :preview do
  21. get :title
  22. get :thumbnail
  23. end
  24. resources :wiki_pages, path: 'wiki', only: [:index, :show, :create, :update] do
  25. collection do
  26. get :search
  27. get :changes
  28. scope :title do
  29. get ':title/exists', action: :exists_by_title
  30. get ':title', action: :show_by_title
  31. end
  32. end
  33. member do
  34. get :exists
  35. get :diff
  36. end
  37. end
  38. resources :posts, only: [:index, :show, :create, :update] do
  39. collection do
  40. get :random
  41. get :changes
  42. end
  43. member do
  44. post :viewed
  45. delete :viewed, action: :unviewed
  46. end
  47. end
  48. resources :users, only: [:create, :update] do
  49. collection do
  50. post :verify
  51. get :me
  52. post 'code/renew', action: :renew
  53. end
  54. end
  55. resources :deerjikists, only: [] do
  56. collection do
  57. scope ':platform/:code' do
  58. get '', action: :show
  59. put '', action: :update
  60. delete '', action: :destroy
  61. end
  62. end
  63. end
  64. resources :theatres, only: [:show] do
  65. member do
  66. put :watching
  67. patch :next_post
  68. end
  69. resources :comments, controller: :theatre_comments, only: [:index, :create]
  70. end
  71. resources :materials, only: [:index, :show, :create, :update, :destroy]
  72. end