Add Telegram ownership for voice reviews
All checks were successful
Build and deploy Backend / build (push) Successful in 1m1s

This commit is contained in:
Ruslan Bakiev
2026-05-08 16:44:32 +07:00
parent bba9c98c82
commit f956148141
14 changed files with 2107 additions and 111 deletions

View File

@@ -11,6 +11,12 @@ app.register(mercurius, {
schema,
resolvers,
graphiql: true,
context: async (request) => {
const header = request.headers['x-telegram-init-data'];
return {
telegramInitData: Array.isArray(header) ? header[0] : header,
};
},
});
app.get('/health', async () => ({ ok: true }));