glowvm

Values

pub fn serve(
  handler: fn(request.Request(wisp.Connection)) -> response.Response(
    wisp.Body,
  ),
) -> Nil

Run a wisp handler as a glowvm app. Call this from start/0:

pub fn start() {
  glowvm.serve(handle_request)
}

fn handle_request(req: wisp.Request) -> wisp.Response {
  wisp.ok() |> wisp.string_body("hello")
}
✨ Search Document