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

35 lines
1.1 KiB

  1. Rails.application.routes.draw do
  2. resources :posts
  3. resources :ip_addresses
  4. resources :nico_tag_relations
  5. resources :post_tags
  6. resources :settings
  7. resources :tag_aliases
  8. resources :tags
  9. resources :user_ips
  10. resources :user_post_views
  11. resources :users, only: [:create] do
  12. collection do
  13. post :verify
  14. get :me
  15. end
  16. end
  17. get 'tags/autocomplete', to: 'tags#autocomplete'
  18. post 'posts/:id/viewed', to: 'posts#viewed'
  19. delete 'posts/:id/viewed', to: 'posts#unviewed'
  20. get 'preview/title', to: 'preview#title'
  21. get 'preview/thumbnail', to: 'preview#thumbnail'
  22. get 'wiki/*title', to: 'wiki_pages#show', format: false
  23. post 'wiki/*title', to: 'wiki_pages#save', format: false
  24. # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
  25. # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
  26. # Can be used by load balancers and uptime monitors to verify that the app is live.
  27. # get "up" => "rails/health#show", as: :rails_health_check
  28. # Defines the root path route ("/")
  29. # root "posts#index"
  30. end