Hide reversi games in secureApiMode

This commit is contained in:
jaina heartles 2024-03-03 17:12:20 -08:00
parent 27e6714827
commit aa0c98adcf
1 changed files with 2 additions and 0 deletions

View File

@ -757,6 +757,8 @@ export class ClientServerService {
// Reversi game
fastify.get<{ Params: { game: string; } }>('/reversi/g/:game', async (request, reply) => {
if (this.config.secureApiMode) return await renderBase(reply);
const game = await this.reversiGamesRepository.findOneBy({
id: request.params.game,
});