With Rikulo's StreamServer
, is it possible to specify a route with optionnal segments ?
For example, I tried to build this route pattern:
/default/(controller:\w+)/(action:\w+)(/(id:\w+))?
For matching both /default/user/get
and /default/user/get/myId
.
In fact, this route correctly matches these 2 URLs, but when I try to get the id value with connect.dataset['id']
, it's always null
:s