mirror of
https://github.com/fmhy/edit.git
synced 2026-01-18 01:41:52 +11:00
fix(api): just return text instead
This commit is contained in:
parent
ee0cff3edc
commit
2eaf4485ff
1 changed files with 1 additions and 7 deletions
|
|
@ -30,8 +30,6 @@ export default defineEventHandler(async () => {
|
|||
})
|
||||
|
||||
try {
|
||||
// event.waitUntil(async () => {
|
||||
|
||||
// Fetch the list of files in the repository
|
||||
const files = await f.get<File[]>(GITHUB_REPO)
|
||||
|
||||
|
|
@ -57,7 +55,6 @@ export default defineEventHandler(async () => {
|
|||
)
|
||||
|
||||
body += contents.join('\n\n')
|
||||
// })
|
||||
} catch (error) {
|
||||
return {
|
||||
status: 500,
|
||||
|
|
@ -65,8 +62,5 @@ export default defineEventHandler(async () => {
|
|||
}
|
||||
}
|
||||
|
||||
return {
|
||||
status: 200,
|
||||
body
|
||||
}
|
||||
return body
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue