holy shit
This commit is contained in:
1 parent
a526a24e7c
commit
b5e5cc502d
20 files changed
+286
-209
No files matched your search
@@ -1 +1,12 @@
|
||||
// TODO: CodeChecker
|
||||
import { API_PREFIX, PREF } from "./const";
|
||||
|
||||
export async function checkCode(code: string) {
|
||||
const res = await fetch(`${API_PREFIX}/codes?code=${code}`, {
|
||||
"method": "GET",
|
||||
"cache": "no-cache"
|
||||
});
|
||||
if (!res.ok) {
|
||||
return null;
|
||||
}
|
||||
return await res.json();
|
||||
}
|
||||
Reference in new issue
Block a user