Xmpp::Application.routes.draw do
    get "chat/index"

    resources :sessions, only: [:new, :create, :destroy]

    root :to => 'sessions#new'

    match '/signin',  to: 'sessions#new'
    match '/signout', to: 'sessions#destroy', via: :delete

    match '/chat', to: 'chat#index'
end