scratch_oxygen / server.jl
=
up
c5f4a32
raw
history blame
372 Bytes
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)