customer docs

This commit is contained in:
2022-03-31 21:14:59 +00:00
parent e4d15ce41c
commit d86931b0ee
4 changed files with 7 additions and 5 deletions

View File

@@ -2,7 +2,10 @@
TEST IMPORT FILE OPEN ON iPad device as the file input accept type may not work with apple TEST IMPORT FILE OPEN ON iPad device as the file input accept type may not work with apple
get back to docs completion Docs completion
search for ![THIS PAGE UNDER CONSTRUCTION](img/underconstruction.svg)
less than 30 so that's good! :)
start in on QBI start in on QBI
minimum viable product, just something that works minimum viable product, just something that works

View File

@@ -1,3 +1,2 @@
# CUSTOMER-CSR # Service requests
![THIS PAGE UNDER CONSTRUCTION](img/underconstruction.svg)

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

View File

@@ -63,7 +63,7 @@ namespace AyaNova
{ {
options.RouteBasePath = "/profiler"; options.RouteBasePath = "/profiler";
//in testing only ignorepaths was reliable and worked and docs say it prevents any profiling at all //in testing only ignorepaths was reliable and worked and docs say it prevents any profiling at all
options.IgnorePath("/auth").IgnorePath("/license").IgnorePath("/user").IgnorePath("/docs"); options.IgnorePath("/auth").IgnorePath("/license").IgnorePath("/user").IgnorePath("/docs").IgnorePath("/custdocs");
options.ResultsAuthorize = request => options.ResultsAuthorize = request =>
{ {
if (request.HttpContext.Items["AY_PROFILER_ALLOWED"] != null) if (request.HttpContext.Items["AY_PROFILER_ALLOWED"] != null)
@@ -644,7 +644,7 @@ namespace AyaNova
//to support html5 pushstate routing in spa //to support html5 pushstate routing in spa
//this ensures that a refresh at the client will not 404 but rather force back to the index.html app page and then handled internally by the client //this ensures that a refresh at the client will not 404 but rather force back to the index.html app page and then handled internally by the client
await next(); await next();
if (!context.Response.HasStarted && !context.Request.Path.Value.StartsWith("/api") && context.Request.Path.Value != "/docs" && context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value)) if (!context.Response.HasStarted && !context.Request.Path.Value.StartsWith("/api") && context.Request.Path.Value != "/docs" && context.Request.Path.Value != "/custdocs" && context.Response.StatusCode == 404 && !Path.HasExtension(context.Request.Path.Value))
{ {
context.Request.Path = "/index.html"; context.Request.Path = "/index.html";
context.Response.StatusCode = 200; context.Response.StatusCode = 200;