Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
laktek
· 2y ago · 0 comments
I think the closest thing we got is the Default fetch export
https://docs.deno.com/runtime/fundamentals/http_server/#defa...
, which Cloudflare Workers, Deno Deploy and Supabase Edge Functions support.
Comments
[–]
throwitaway1123
2y ago
Node is the only major outlier. Bun supports this convention as well:
https://bun.sh/docs/api/http#export-default-syntax
[–]
apitman
2y ago
I had no idea this was a thing. Thanks!