Adding a goodbye route
Add another route to display a goodbye message
(defroutes app
(GET "/" [] welcome)
(GET "/goodbye" [] goodbye)
(not-found "Sorry, page not found"))
Note::Write the handler function for the goodbye
route
(defn goodbye
"A song to wish you goodbye"
[request]
{:status 200
:headers {}
:body "<h1>Walking back to happiness</h1>
<p>Walking back to happiness with you</p>
<p>Said, Farewell to loneliness I knew</p>
<p>Laid aside foolish pride</p>
<p>Learnt the truth from tears I cried</p>"})
Now test your new route.
As we have wrap-reload
around app then no restart needed