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

45 lines
1.5 KiB

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