Skip to content

Route matches empty strings #120

dzhus opened this Issue Jan 29, 2012 · 1 comment

2 participants

dzhus commented Jan 29, 2012

route function successfully assigns a handler even if some of variable captures resulted in empty string. This may be displeasing in certain setups.

With routing table set as follows:

routes = [ (":model", method GET emptyForm)
         , (":model/model", method GET metamodel)

         , (":model", method POST create)
         , (":model/:id", method GET read')
         , (":model/:id", method DELETE delete)

requesting /test/ gets handled by read', not emptyForm, with id parameter set to empty.

Snap Framework member


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.