Random example banner cleanup

This commit is contained in:
Connor Prussin
2018-09-03 12:23:58 -07:00
parent ce4a10a3b5
commit 775b06f004
4 changed files with 38 additions and 36 deletions

View File

@@ -14,10 +14,12 @@ router _ = HTTPure.notFound
-- | Boot up the server
main :: HTTPure.ServerM
main = HTTPure.serve 8080 router do
Console.log $ " ┌───────────────────────────────────────────────┐"
Console.log $ " │ Server now up on port 8080 │"
Console.log $ " │ │"
Console.log $ " │ To test, run: │"
Console.log $ " │ > curl localhost:8080/hello # => hello │"
Console.log $ " │ > curl localhost:8080/goodbye # => goodbye │"
Console.log $ " └───────────────────────────────────────────────┘"
Console.log $ " ┌────────────────────────────────┐"
Console.log $ " │ Server now up on port 8080 │"
Console.log $ " │ │"
Console.log $ " │ To test, run: │"
Console.log $ " │ > curl localhost:8080/hello │"
Console.log $ " │ # => hello │"
Console.log $ " │ > curl localhost:8080/goodbye │"
Console.log $ " │ # => goodbye │"
Console.log $ " └────────────────────────────────┘"