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

61 lines
1.1 KiB

  1. Rails.application.routes.draw do
  2. resources :nico_tags, path: 'tags/nico', only: [:index, :update]
  3. resources :tags do
  4. collection do
  5. get :autocomplete
  6. get 'name/:name', action: :show_by_name
  7. end
  8. end
  9. scope :preview, controller: :preview do
  10. get :title
  11. get :thumbnail
  12. end
  13. resources :wiki_pages, path: 'wiki', only: [:index, :show, :create, :update] do
  14. collection do
  15. get :search
  16. get :changes
  17. scope :title do
  18. get ':title/exists', action: :exists_by_title
  19. get ':title', action: :show_by_title
  20. end
  21. end
  22. member do
  23. get :exists
  24. get :diff
  25. end
  26. end
  27. resources :posts do
  28. collection do
  29. get :random
  30. get :changes
  31. end
  32. member do
  33. post :viewed
  34. delete :viewed, action: :unviewed
  35. end
  36. end
  37. resources :users, only: [:create, :update] do
  38. collection do
  39. post :verify
  40. get :me
  41. post 'code/renew', action: :renew
  42. end
  43. end
  44. resources :ip_addresses
  45. resources :nico_tag_relations
  46. resources :post_tags
  47. resources :settings
  48. resources :tag_aliases
  49. resources :user_ips
  50. resources :user_post_views
  51. end