mirror of
https://github.com/fmhy/edit.git
synced 2026-02-19 01:31:41 +11:00
ill just look tommorow
This commit is contained in:
parent
46ab0a1e98
commit
23878e3f3e
2 changed files with 0 additions and 11 deletions
|
|
@ -1,9 +0,0 @@
|
|||
export default defineEventHandler(async (event) => {
|
||||
return new Response("", {
|
||||
status: 200,
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Allow-Methods": "POST,PATCH,OPTIONS",
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
@ -24,8 +24,6 @@ function getFeedbackOption(value: string) {
|
|||
}
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
if (event.headers.get("sec-fetch-mode") === "cors") return sendNoContent(event, 200);
|
||||
|
||||
const { message, contactEmail, feedbackType } = await readBody<Feedback>(event);
|
||||
const env = useRuntimeConfig(event);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue