Skip to content

Commit 79d710a

Browse files
committed
fix: update API route to use respondWith for plain text response handling
1 parent 51a261d commit 79d710a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
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)