DEV: Fix the /tests path in ember-cli server (#15075)

This commit is contained in:
Jarek Radosz 2021-11-24 15:34:04 +01:00 committed by GitHub
parent e217364a46
commit 9105163882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,6 +309,10 @@ to serve API requests. For example:
},
shouldHandleRequest(request) {
if (request.path === "/tests/index.html") {
return false;
}
if (request.get("Accept") && request.get("Accept").includes("text/html")) {
return true;
}