holy shit
This commit is contained in:
1 parent
a526a24e7c
commit
b5e5cc502d
20 files changed
+286
-209
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { API_PREFIX } from "./const";
|
||||
|
||||
export async function heartbeat(data: any, code: string) {
|
||||
const res = await fetch(`${API_PREFIX}/sessions?code=${code}`,
|
||||
{
|
||||
"method": "POST",
|
||||
"cache": "no-cache",
|
||||
"body": JSON.stringify(data)
|
||||
}
|
||||
);
|
||||
return res;
|
||||
}
|
||||
Reference in new issue
Block a user