Open bznbot opened 1 month ago
I'm using the Next.js TSDK template, but where can I make global fetch requests? For example, to my createUser API or to use functions like webapp.expand?
RootInner or Root? or anything else?
Im trying to do something like Dogs: https://t.me/dogshouse_bot/join?startapp=JioMJu6FRqivOO2C3JRQWg
on access it they fetch a POST to /api/join creating a new user and show a loading then save it on db.
Up
I'm using the Next.js TSDK template, but where can I make global fetch requests? For example, to my createUser API or to use functions like webapp.expand?
RootInner or Root? or anything else?
Im trying to do something like Dogs: https://t.me/dogshouse_bot/join?startapp=JioMJu6FRqivOO2C3JRQWg
on access it they fetch a POST to /api/join creating a new user and show a loading then save it on db.