Skip to content

Commit

Permalink
up api
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjj1024 committed Sep 18, 2024
1 parent d391c78 commit e8fb5a3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/apis/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
},
}

0 comments on commit e8fb5a3

Please sign in to comment.