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

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