Buckets:
| import Ably from "ably/promises"; | |
| import type { NextApiRequest, NextApiResponse } from "next"; | |
| export default async function handler( | |
| req: NextApiRequest, | |
| res: NextApiResponse, | |
| ) { | |
| const client = new Ably.Realtime(process.env.ABLY_API_KEY); | |
| const tokenRequestData = await client.auth.createTokenRequest({ | |
| clientId: req.query.clientId as string, | |
| }); | |
| res.status(200).json(tokenRequestData); | |
| } | |
Xet Storage Details
- Size:
- 408 Bytes
- Xet hash:
- d9000338abe1a7eebf7b0e7c0e362b5505eeb94175bfe79dda9e40151319e4c6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.