From dd68c45d6b219ea725521a4f94cb5899ddc55ed8 Mon Sep 17 00:00:00 2001 From: Connor Prussin Date: Mon, 10 Jul 2017 12:54:41 -0700 Subject: [PATCH] Correct quick start example in readme --- Readme.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 6cd3d07..826cf93 100644 --- a/Readme.md +++ b/Readme.md @@ -35,9 +35,10 @@ main :: HTTPure.HTTPureM (console :: Console.CONSOLE) main = do HTTPure.serve 8080 routes $ Console.log "Server now up on port 8080" where - routes = map HTTPure.Route - [ { method: HTTPure.Get - , route: "/" + routes = + [ HTTPure.Get "/" + { status: \_ -> 200 + , headers: \_ -> [] , body: \_ -> "hello world!" } ]