22 lines
517 B
Ruby
22 lines
517 B
Ruby
|
Rails.application.routes.draw do
|
||
|
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||
|
root 'login#init'
|
||
|
|
||
|
get '/login', to: 'login#init'
|
||
|
post '/login', to: 'login#login'
|
||
|
get 'logout', to: 'login#logout'
|
||
|
|
||
|
get '/signup', to: 'users#new'
|
||
|
|
||
|
get '/main', to: 'main#show'
|
||
|
|
||
|
get '/chat', to: 'chat#index'
|
||
|
post '/newmsg', to: 'chat#new'
|
||
|
get '/notify', to: 'chat#notify'
|
||
|
get '/query', to: 'chat#query'
|
||
|
get '/online',to: 'chat#online'
|
||
|
|
||
|
resource :users
|
||
|
|
||
|
end
|