1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 08:39:09 -05:00
denoland-deno/tests/testdata/serve/port_0.ts
Marvin Hagemeister 812f2e4c22
fix: serve handler error with 0 arguments (#23652)
Fixes https://github.com/denoland/deno/issues/23651

Co-authored-by: Satya Rohith <me@satyarohith.com>
2024-05-17 18:05:19 +05:30

5 lines
105 B
TypeScript

export default {
fetch(_req: Request) {
return new Response("deno serve --port 0 works!");
},
};