We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1edfbd3 commit 4b11b55Copy full SHA for 4b11b55
sample/Controller.Sample/Controller.Sample.fs
@@ -33,11 +33,17 @@ let userController = controller {
33
edit (fun (ctx, id) -> (sprintf "Edit handler no version - %i" id) |> Controller.text ctx)
34
}
35
36
-let topRouter = scope {
+let otherRouter = scope {
37
+ get "/dsa" (text "")
38
+ getf "/dsa/%s" (text)
39
+ forwardf "/ddd/%s" (fun (a : string) -> userControllerVersion1)
40
not_found_handler (setStatusCode 404 >=> text "Not Found")
41
+}
42
43
+let topRouter = scope {
44
forward "/users" userControllerVersion1
45
forward "/users" userController
46
+ forwardf "/%s/%s/abc" (fun (a : string * string) -> otherRouter)
47
48
49
let app = application {
0 commit comments