Archived
1
0

Move manifest to the root

Fixes #1278.
This commit is contained in:
Asher
2020-01-16 11:36:17 -06:00
parent 1474a82c7d
commit 45f70e741f
4 changed files with 9 additions and 3 deletions

View File

@ -296,6 +296,12 @@ export abstract class Server {
switch (base) {
case "/":
switch (requestPath) {
case "/manifest.json":
const response = await this.getResource(this.serverRoot, "media", requestPath);
response.cache = true;
return response;
}
if (!this.authenticate(request)) {
return { redirect: "/login" };
}