scratch_oxygen / server.jl
=
add note
67bd7b7
raw
history blame contribute delete
431 Bytes
using Oxygen
using HTTP
#import OstreaCultura as OC
# GO TO https://stefanjwojcik-scratch-oxygen.hf.space/docs
@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)