Hide reversi games in secureApiMode

This commit is contained in:
jaina heartles 2024-03-03 17:12:20 -08:00
parent 27e6714827
commit aa0c98adcf

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,
});