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

66 lines
1.3 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 do
  8. collection do
  9. get :autocomplete
  10. get 'name/:name', action: :show_by_name
  11. end
  12. end
  13. scope :preview, controller: :preview do
  14. get :title
  15. get :thumbnail
  16. end
  17. resources :wiki_pages, path: 'wiki', only: [:index, :show, :create, :update] do
  18. collection do
  19. get :search
  20. get :changes
  21. scope :title do
  22. get ':title/exists', action: :exists_by_title
  23. get ':title', action: :show_by_title
  24. end
  25. end
  26. member do
  27. get :exists
  28. get :diff
  29. end
  30. end
  31. resources :posts do
  32. collection do
  33. get :random
  34. get :changes
  35. end
  36. member do
  37. post :viewed
  38. delete :viewed, action: :unviewed
  39. end
  40. end
  41. resources :users, only: [:create, :update] do
  42. collection do
  43. post :verify
  44. get :me
  45. post 'code/renew', action: :renew
  46. end
  47. end
  48. resources :ip_addresses
  49. resources :nico_tag_relations
  50. resources :post_tags
  51. resources :settings
  52. resources :tag_aliases
  53. resources :user_ips
  54. resources :user_post_views
  55. end