mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
chore: merge blocksuite source code (#9213)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const BASE_URL = new URL(import.meta.env.PLAYGROUND_SERVER);
|
||||
export async function generateRoomId(): Promise<string> {
|
||||
return fetch(new URL('/room/', BASE_URL), {
|
||||
method: 'post',
|
||||
})
|
||||
.then(res => res.json())
|
||||
.then(({ id }) => id);
|
||||
}
|
||||
Reference in New Issue
Block a user