示例#1
0
 //Return default.html for unmatched requests so routing is handled on client
 public object Any(FallbackForClientRoutes request) =>
 new HttpResult(VirtualFileSources.GetFile("index.html"));
示例#2
0
 public object Any(FallbackForClientRoutes request)
 {
     return(defaultHtml ??
            (defaultHtml = HostContext.ResolveVirtualFile("/default.html", Request).ReadAllText()));
 }
示例#3
0
 public object Any(FallbackForClientRoutes request)
 {
     return defaultHtml ??
         (defaultHtml = HostContext.ResolveVirtualFile("/default.html", Request).ReadAllText());
 }