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 '/ws', to: 'chat#ws'
    match '/chat_template', to: 'chat#index'
end