Hide reversi games in secureApiMode
This commit is contained in:
parent
27e6714827
commit
aa0c98adcf
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue