public object Any(FallbackForClientRoutes request) { return defaultHtml ?? (defaultHtml = HostContext.ResolveVirtualFile("/default.html", Request).ReadAllText()); }
public object Any(FallbackForClientRoutes request) { return(new HttpResult(VirtualFileSources.GetFile("default.html"))); }
public object Any(FallbackForClientRoutes request) { return(defaultHtml ?? (defaultHtml = HostContext.ResolveVirtualFile("/default.html", Request).ReadAllText())); }
public object Any(FallbackForClientRoutes request) { //Return default.cshtml for unmatched requests so routing is handled on the client return new HttpResult { View = "/default.cshtml" }; }