0

I have two moustache routes basically the http://localhost and http:localhost/ route which point to the same function -

[""]  (-> (index) response constantly)
["/"] (-> (index) response constantly) 

How do I -

  1. Is it possible to specify both of these routes together such as ["" "/"] as they follow each other ?
  2. Is it possible to redirect from one route to the other ex [""] (redirect "/") ?

Thanks, Murtaza

Vao Tsun
  • 47,234
  • 13
  • 100
  • 132
murtaza52
  • 46,887
  • 28
  • 84
  • 120

1 Answers1

0

the route is a handler, is just a function. and you can use ring.util.response/redirect

number23_cn
  • 4,611
  • 26
  • 31