Change your dispatcher to be:
LiftRules.dispatch.prepend {
case r @ Req(u :: id :: Nil, , GetRequest) = () = {
// lookup in your database here...
Full(RedirectResponse(fullyQualifiedUrl))
}
}
I can then pass the id parameter to your database query then do a
Thanks, Timothy, it works now!
Your suggestion incorporated here:
http://github.com/opyate/yauser/commit/eb7af882ea8bdcfc3e621e3b0b8e77ad72b8ef58
Yauser v 0.1-SNAPSHOT is now a fully functional URL shortener, but check the
roadmap for future features.
Thanks guys,
Juan
2009/7/20 Timothy