You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not what actually happens when I try this example:
namespacews_routeropenWebSharperopenWebSharper.SiteletsopenWebSharper.UItypeEndPoint=|[<EndPoint "/">] Home
|[<EndPoint "/">] Args ofstringmoduleSite =[<Website>]letMain=
Sitelet.Infer (fun _ endpoint ->match endpoint with| EndPoint.Home -> Content.Text "Home"| EndPoint.Args name -> Content.Text (sprintf "Got Args: %s"(match name with s when s =""->"none!"| x -> x)))
When I run that example and go to localhost:xxx it displays "Got Args: none!" instead of "Home". For ReST APIs it is important that that distinction works as described in the docs!
The text was updated successfully, but these errors were encountered:
The docs at https://developers.websharper.com/docs/v4.x/fs/sitelets say that "If several cases have the same EndPoint, then parsing tries them in the order in which they are declared until one of them matches:"
This is not what actually happens when I try this example:
When I run that example and go to localhost:xxx it displays "Got Args: none!" instead of "Home". For ReST APIs it is important that that distinction works as described in the docs!
The text was updated successfully, but these errors were encountered: