feat: implement post existence check and detail page

This commit is contained in:
암냥 2026-04-18 06:48:21 +09:00
commit b18cff8b1a
No known key found for this signature in database
10 changed files with 646 additions and 43 deletions

View file

@ -53,7 +53,7 @@ export default new Elysia({ prefix: "/auth" })
value: "",
httpOnly: true,
maxAge: 0,
path: "/api",
path: "/",
});
return { ok: true };
@ -141,7 +141,7 @@ export default new Elysia({ prefix: "/auth" })
value: token,
httpOnly: true,
maxAge: 60 * 60 * 24 * 7, // 7 days
path: "/api",
path: "/",
});
return redirect("/");
@ -203,7 +203,7 @@ export default new Elysia({ prefix: "/auth" })
value: nextToken,
httpOnly: true,
maxAge: 60 * 60 * 24 * 7,
path: "/api",
path: "/",
});
}