Example #1
0
 public virtual IVirtualFile ResolveVirtualFile(string virtualPath, IRequest httpReq)
 {
     return(VirtualFileSources.GetFile(virtualPath));
 }
Example #2
0
 //Return default.html for unmatched requests so routing is handled on client
 public object Any(IndexPage request) =>
 new HttpResult(VirtualFileSources.GetFile("default.html"));
Example #3
0
 //Return default.html for unmatched requests so routing is handled on client
 public object Any(FallbackForClientRoutes request) =>
 new HttpResult(VirtualFileSources.GetFile("index.html"));
Example #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")));
 }
 public object AngularJsApp()
 {
     //Return default.cshtml for unmatched requests so routing is handled on the client
     return(new HttpResult(VirtualFileSources.GetFile("/default.html")));
 }
Example #6
0
 public object Any(FallbackForClientRoutes request)
 {
     return(new HttpResult(VirtualFileSources.GetFile("default.html")));
 }