mirror of
https://github.com/fmhy/edit.git
synced 2026-01-17 17:31:18 +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 {
|
try {
|
||||||
// event.waitUntil(async () => {
|
|
||||||
|
|
||||||
// Fetch the list of files in the repository
|
// Fetch the list of files in the repository
|
||||||
const files = await f.get<File[]>(GITHUB_REPO)
|
const files = await f.get<File[]>(GITHUB_REPO)
|
||||||
|
|
||||||
|
|
@ -57,7 +55,6 @@ export default defineEventHandler(async () => {
|
||||||
)
|
)
|
||||||
|
|
||||||
body += contents.join('\n\n')
|
body += contents.join('\n\n')
|
||||||
// })
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return {
|
return {
|
||||||
status: 500,
|
status: 500,
|
||||||
|
|
@ -65,8 +62,5 @@ export default defineEventHandler(async () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return body
|
||||||
status: 200,
|
|
||||||
body
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue