[dancer-users] Bypassing Splat Behaviour in Dancer2

Timm Murray tmurray at wumpus-cave.net
Wed Jul 30 13:53:23 BST 2014


I'm making a backwards-compatible implementation with an existing REST
interface which has a lot of literal '*' characters in the paths, like:

/devices/:name/*/integer
/devices/:name/*

But Dancer2 interprets the splat and tends to make it interfere with other
routes.  Is there any way to make it use it as a literal '*' character?  I
tried a regex:

qr{/devices/:name/\*/integer}

But that didn't seem to do the trick.

Thanks,
Timm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20140730/3655a675/attachment.html>


More information about the dancer-users mailing list