= commited on
Commit
af77f04
·
1 Parent(s): a0c6576
Files changed (1) hide show
  1. server.jl +6 -1
server.jl CHANGED
@@ -6,6 +6,11 @@ using HTTP
6
  return "hello world!"
7
  end
8
 
 
 
 
 
 
9
 
10
  # start the web server
11
- serve(host="0.0.0.0", port=8000)
 
6
  return "hello world!"
7
  end
8
 
9
+ # Print out some HTML
10
+ @get "/html" function(req::HTTP.Request)
11
+ return HTML("<h1>Hello, World!</h1>")
12
+ end
13
+
14
 
15
  # start the web server
16
+ serve(host="0.0.0.0", port=8000, docs_path="")