This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/config/routes.rb
MrYummy 1316d7ca03 Added Searching Features
* Added Thread Search Feature

* Added User Search Feature

* Re-organized searching, added @mention support to author search
2017-06-18 13:11:36 -04:00

62 lines
1.3 KiB
Ruby

Redstoner::Application.routes.draw do
resources :blogposts, path: '/blog' do
resources :comments
end
resources :statics, only: [:home, :donate, :online], path: '/' do
collection do
get 'donate'
get 'home'
get 'online'
get 'index'
end
end
resources :info
resources :users do
member do
get 'confirm'
get 'edit_login'
post 'resend_mail'
get 'edit_notifications'
put 'update_login'
end
collection do
get 'lost_password'
post 'reset_password'
post 'suggestions'
post 'search_redirect'
end
end
resources :forumgroups, path: '/forums/groups'
resources :forumthreads, path: '/forums/threads' do
resources :threadreplies, path: 'replies'
collection do
get 'search'
post 'search_redirect'
end
end
resources :forums, path: '/forums'
resources :tools do
collection do
post 'render_markdown'
end
end
# get '/status' => 'status#show'
get 'login' => 'sessions#new'
post 'login' => 'sessions#create'
get 'become' => 'sessions#become'
get 'revert' => 'sessions#revert'
delete 'logout' => 'sessions#destroy'
get 'signup' => 'users#new'
get '/dmca' => redirect('https://www.youtube.com/watch?v=oHg5SJYRHA0')
root to: 'statics#index'
end