Files
ruby-sea-battle/main-server/config/routes.rb
T

19 lines
608 B
Ruby

Rails.application.routes.draw do
mount ActionCable.server => "/cable"
namespace :api do
post "register", to: "registrations#create"
post "login", to: "sessions#create"
delete "logout", to: "sessions#destroy"
get "me", to: "sessions#me"
delete "matchmaking", to: "matchmaking#destroy"
# Matchmaking starts over the MatchmakingChannel WebSocket
# (see app/channels/matchmaking_channel.rb).
end
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
get "up" => "rails/health#show", as: :rails_health_check
end