add private endpoint for match reporting

This commit is contained in:
2026-11-09 23:17:55 +03:00
parent f0616c7c51
commit dcb76fa570
11 changed files with 738 additions and 4 deletions
+9
View File
@@ -9,6 +9,15 @@ Rails.application.routes.draw do
# Matchmaking starts and stops over the MatchmakingChannel WebSocket
# (see app/channels/matchmaking_channel.rb).
# Match details for the participants of the match.
get "matches/:uuid", to: "matches#show"
# Intended for the game-server only; authenticated via HMAC (see
# InternalSignatureService), not via a user JWT.
namespace :internal do
post "matches/:uuid/result", to: "match_results#create"
end
end
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.