feat: implement post existence check and detail page
This commit is contained in:
parent
55af0549e7
commit
b18cff8b1a
10 changed files with 646 additions and 43 deletions
|
|
@ -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: "/",
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue