serve("api/user/" prefix {
case Get(username :: Nil, _) =>{
logger.debug("Username = " + username)
}
}
If I try to reach it at ugo.m I will get Username = ugo
I saw this discussion https://groups.google.com/d/topic/liftweb/UwZQ8f2MmLE/discussion but what I would like to do is to disable explicitlyParsedSuffixes only for this request.
Is there any way to do that ?
Thank you in advance
Ugo
Thank you in advance
Ugo
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
protected object GetWithSuffix {
def unapply(r: Req): Option[(List[String], Req)] =
if (r.get_?) Some(r.path.wholePath -> r) else None
}
Thank you very much David.I ended up with something like thisprotected object GetWithSuffix {
def unapply(r: Req): Option[(List[String], Req)] =
if (r.get_?) Some(r.path.wholePath -> r) else None
}
But I still wonder if this couldn't be made a factory or something like LiftRules.defaultHeaders so we could have custom rules depending on the request.