Add Telegram ownership for voice reviews
All checks were successful
Build and deploy Backend / build (push) Successful in 1m1s
All checks were successful
Build and deploy Backend / build (push) Successful in 1m1s
This commit is contained in:
@@ -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 }));
|
||||
|
||||
Reference in New Issue
Block a user