File size: 431 Bytes
75cd75b
 
 
67bd7b7
75cd75b
 
839536f
 
75cd75b
 
 
af77f04
 
 
 
 
75cd75b
 
c5f4a32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)