File size: 372 Bytes
75cd75b
 
 
 
 
839536f
 
75cd75b
 
 
af77f04
 
 
 
 
75cd75b
 
c5f4a32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using Oxygen
using HTTP
#import OstreaCultura as OC

@get "/greet" function(req::HTTP.Request)
    println("Request path: ", req.target)
    println("Headers: ", req.headers)
    return "hello world!"
end

# Print out some HTML
@get "/html" function(req::HTTP.Request)
    return HTML("<h1>Hello, World!</h1>")
end


# start the web server
serve(host="0.0.0.0", port=8000)