From e8fb5a3a259e411a391e8fe2ed756f060747b2e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?1024=E5=B0=8F=E7=A5=9E?= <15670339118@163.com> Date: Wed, 18 Sep 2024 16:27:43 +0800 Subject: [PATCH] up api --- src/apis/github.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/apis/github.ts b/src/apis/github.ts index 962d8aab..32dd457c 100644 --- a/src/apis/github.ts +++ b/src/apis/github.ts @@ -27,4 +27,18 @@ export default { body, }) }, + // creat file contents + updateConfigFile(body: any) { + return http(`/repos/{owner}/{repo}/contents/{path}`, { + method: 'post', + body, + }) + }, + // creat file contents + updateMainRsFile(body: any) { + return http(`/repos/{owner}/{repo}/contents/{path}`, { + method: 'post', + body, + }) + }, }