# I need help with routing in the Genie app

**URL:** <https://discourse.julialang.org/t/i-need-help-with-routing-in-the-genie-app/124223>\
**Category:** New to Julia\
**Created:** [December 28, 2024, 2:33am UTC](https://discourse.julialang.org/t/i-need-help-with-routing-in-the-genie-app/124223 "2024-12-28T02:33:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gromblr1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gromblr1/32/214413_2.png) [@gromblr1](https://discourse.julialang.org/u/gromblr1)\
**Post date:** [December 28, 2024, 2:33am UTC](https://discourse.julialang.org/t/i-need-help-with-routing-in-the-genie-app/124223/1 "2024-12-28T02:33:02Z")

</div>

Hola Julians :julia-smirk:  
i need some help por favor  
i am able to get the Genie app running and it opens successfully at localhost:8000

but i am getting this error every time I refresh… .how do i point the server to the correct directory where my “welcome.html” file is ?

im a newbie when it comes to “routing in programming” but i feel like it has something to do with routes.jl

 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/a/ea9911510a289d8a312c766a0b1f516f8c1f38d2.png)

---

<div class="post-metadata">

**Author:** ![Cinzia\_Genie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cinzia_genie/32/207807_2.png) [@Cinzia\_Genie](https://discourse.julialang.org/u/Cinzia_Genie)\
**Post date:** [December 28, 2024, 10:48pm UTC](https://discourse.julialang.org/t/i-need-help-with-routing-in-the-genie-app/124223/2 "2024-12-28T22:48:28Z")

</div>

@gromblr1 I highly recommend joining the Genie community on Discord and sharing your question on the help forum there for support. Here’s the link to join: [Genie Community](https://discord.com/invite/9zyZbD6J7H)

---

<div class="post-metadata">

**Author:** ![g-gundam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/g-gundam/32/47593_2.png) [@g-gundam](https://discourse.julialang.org/u/g-gundam)\
**Post date:** [December 28, 2024, 11:59pm UTC](https://discourse.julialang.org/t/i-need-help-with-routing-in-the-genie-app/124223/3 "2024-12-28T23:59:47Z")

</div>

The default route that gets generated is:

```julia
route("/") do
    serve_static_file("welcome.html")
end

```

Also, the default `welcome.html` is located in `public/welcome.html`. I’m surprised you’re getting a 404 if you’re starting from a newly generated Genie app. Coincidentally, that fancy 404 is in the same `public/` directory.

Did you make any changes to `routes.jl`?

---

<div class="post-metadata">

**Author:** ![gromblr1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gromblr1/32/214413_2.png) [@gromblr1](https://discourse.julialang.org/u/gromblr1)\
**Post date:** [December 29, 2024, 4:51am UTC](https://discourse.julialang.org/t/i-need-help-with-routing-in-the-genie-app/124223/4 "2024-12-29T04:51:49Z")

</div>

What’s weird is when I create a new project with Genie.Generator.newapp(“project\_name\_something”), it will start the web server up after creating the project perfectly !  
However, when I close down the terminal, reopen it back up and start the web server, it gives me this error.  
I feel like its my proficiency (or lackthereof) of navigating the Julia terminal and toggling the right commands.

---

<div class="post-metadata">

**Author:** ![gromblr1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gromblr1/32/214413_2.png) [@gromblr1](https://discourse.julialang.org/u/gromblr1)\
**Post date:** [December 29, 2024, 4:52am UTC](https://discourse.julialang.org/t/i-need-help-with-routing-in-the-genie-app/124223/5 "2024-12-29T04:52:24Z")

</div>

just joined ! Ty for the invite \<3
