Exemplo n.º 1
0
 public object Any(FallbackForClientRoutes request)
 {
     //Return default.cshtml for unmatched requests so routing is handled on the client
     return(new HttpResult
     {
         View = "/default.cshtml"
     });
 }
Exemplo n.º 2
0
 //Return index.html for unmatched requests so routing is handled on client
 public object Any(FallbackForClientRoutes request) =>
 new PageResult(Request.GetPage("/"));
Exemplo n.º 3
0
 //Return index.html for unmatched requests so routing is handled on client
 public object Any(FallbackForClientRoutes request) =>
 new HttpResult(VirtualFileSources.GetFile("index.html"));
Exemplo n.º 4
0
 public object Any(FallbackForClientRoutes request)
 {
     //Return default.html for unmatched requests so routing is handled on client
     return(new HttpResult(VirtualFileSources.GetFile("default.html")));
 }
Exemplo n.º 5
0
 public object Any(FallbackForClientRoutes request)
 {
     return(defaultHtml ??
            (defaultHtml = HostContext.ResolveVirtualFile("/default.html", Request).ReadAllText()));
 }