# Problem with endpoints in web with Genie

**URL:** https://discourse.julialang.org/t/problem-with-endpoints-in-web-with-genie/55100
**Category:** New to Julia
**Tags:** question
**Created:** [February 11, 2021, 10:55pm UTC](https://discourse.julialang.org/t/problem-with-endpoints-in-web-with-genie/55100 "2021-02-11T22:55:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Volodymyr\_Pakholok](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/volodymyr_pakholok/32/21600_2.png) [@Volodymyr\_Pakholok](https://discourse.julialang.org/u/Volodymyr_Pakholok)
#### Post date: [February 11, 2021, 10:55pm UTC](https://discourse.julialang.org/t/problem-with-endpoints-in-web-with-genie/55100/1 "2021-02-11T22:55:18Z")

</div>

using Genie, Genie.Router, Genie.Renderer.Html, Genie.Requests, Genie.Renderer.Json  
using HTTP

form = “”"

 """

HTTP.request(“POST”, “[http://localhost:8000/jsonpayload](http://localhost:8000/jsonpayload)”, [(“Content-Type”, “application/json”)], “”“{“name”:“Adrian”}”“”)

route(“/”) do  
html(form)  
end

route(“/jsonpayload”, method = POST) do  
@show jsonpayload()  
@show rawpayload()

json(“Hello $(jsonpayload()[“name”])”)  
end

route(“/error500”) do  
error\_500(“Something went wrong”)  
end

route(“/error404”) do  
error\_404(“the page you want”)  
end

startup()

noone feom that does not view in browser…
