Hide reversi games in secureApiMode
This commit is contained in:
parent
27e6714827
commit
aa0c98adcf
|
@ -757,6 +757,8 @@ export class ClientServerService {
|
||||||
|
|
||||||
// Reversi game
|
// Reversi game
|
||||||
fastify.get<{ Params: { game: string; } }>('/reversi/g/:game', async (request, reply) => {
|
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({
|
const game = await this.reversiGamesRepository.findOneBy({
|
||||||
id: request.params.game,
|
id: request.params.game,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue