Skip to content

Commit 14a3cb0

Browse files
committed
fix: update API route to use respondWith for plain text response handling
1 parent e79f17c commit 14a3cb0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import type { APIEvent } from "@solidjs/start/server";
2-
3-
export const GET = (event: APIEvent) => {
4-
return new Response("Text Plain Response");
5-
};
1+
export function GET(e: { nativeEvent: { respondWith: (arg0: Response) => void; }; }) {
2+
e.nativeEvent.respondWith(new Response("test"));
3+
}

0 commit comments

Comments
 (0)