mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-15 06:18:48 +00:00
공개 키 등록 구현
This commit is contained in:
12
src/routes/(fullscreen)/key/export/service.ts
Normal file
12
src/routes/(fullscreen)/key/export/service.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { callAPI } from "$lib/hooks";
|
||||
|
||||
export const requestPubKeyRegistration = async (pubKeyBase64: string) => {
|
||||
const res = await callAPI("/api/key/register", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ pubKey: pubKeyBase64 }),
|
||||
});
|
||||
return res.ok;
|
||||
};
|
||||
Reference in New Issue
Block a user