git.iko.soy/purestack-dev/purescript-purestack-server
on master help sign in
9 lines 137 B history raw
1export function serve_(f) {
2 return function() {
3 return Bun.serve({
4 fetch(req) {
5 return f(req)()
6 }
7 })
8 }
9}