Spaces:
Sleeping
Sleeping
=
commited on
Commit
·
839536f
1
Parent(s):
6208f87
st
Browse files
server.jl
CHANGED
@@ -3,6 +3,8 @@ using HTTP
|
|
3 |
#import OstreaCultura as OC
|
4 |
|
5 |
@get "/greet" function(req::HTTP.Request)
|
|
|
|
|
6 |
return "hello world!"
|
7 |
end
|
8 |
|
@@ -13,4 +15,4 @@ end
|
|
13 |
|
14 |
|
15 |
# start the web server
|
16 |
-
serve(host="0.0.0.0", port=8000, docs_path="
|
|
|
3 |
#import OstreaCultura as OC
|
4 |
|
5 |
@get "/greet" function(req::HTTP.Request)
|
6 |
+
println("Request path: ", req.target)
|
7 |
+
println("Headers: ", req.headers)
|
8 |
return "hello world!"
|
9 |
end
|
10 |
|
|
|
15 |
|
16 |
|
17 |
# start the web server
|
18 |
+
serve(host="0.0.0.0", port=8000, docs_path="")
|