feat(web): add privacy policy page and trim the memory block text
This commit is contained in:
parent
8ce307e25b
commit
309b77e63c
7 changed files with 89 additions and 15 deletions
|
|
@ -50,7 +50,13 @@ const server = Bun.serve({
|
|||
? resolve(root, "src")
|
||||
: resolve(root, "public");
|
||||
let file = resolve(base, sourceStyle ? "styles.css" : `.${path}`);
|
||||
if (path === "/" || path === "/account" || path === "/account/")
|
||||
if (
|
||||
path === "/" ||
|
||||
path === "/account" ||
|
||||
path === "/account/" ||
|
||||
path === "/privacy" ||
|
||||
path === "/privacy/"
|
||||
)
|
||||
file = resolve(base, "index.html");
|
||||
if (!file.startsWith(base + sep))
|
||||
return new Response(null, { status: 403 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue