I would like to have one request redirect to another page, but I'm not sure how:
(defroutes app(GET "/ws" ws-handler) ; Websocket connection(GET "/user/:id" [id] ;; I want to redirect to index.html?user=id
))
When I get the /user/:id path, I would like to return index.html?user=id. How can that be done?
Also, how to I interpret URL params using defroutes?