Created
April 21, 2009 08:24
-
-
Save timperrett/99026 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val myReWriter: LiftRules.RewritePF = NamedPF("DemoBind") { | |
case RewriteRequest(ParsePath("user" :: id :: Nil, "", true, false), GetRequest, _) => { | |
RewriteResponse(ParsePath("path" :: "to" :: "template" :: Nil, "", true, false), Map("id" -> id)) | |
} | |
} | |
LiftRules.rewrite.append(myReWriter) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment