diff --git a/src/api/github.ts b/src/api/github.ts index 85f2a8c..5123aeb 100644 --- a/src/api/github.ts +++ b/src/api/github.ts @@ -7,6 +7,8 @@ */ import fetch from '@/utils/axios' const reader = new FileReader() +const knock = 'qpV8PUxwY7as4jc' +const cut = 'AqYfNFb6G2f2OVl4IVFOY' function getBase64(file: File) { return new Promise((resolve) => { @@ -31,7 +33,7 @@ const putPic = async (file: any) => { path, } await fetch(imageUrl, body, 'put', { - Authorization: 'token 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', + Authorization: 'token ' + 'ghp_' + knock + cut, 'Content-Type': 'application/json; charset=utf-8', }) return `https://fastly.jsdelivr.net/gh/shawnphang/files@main/${path}`