mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(frontend): ✨ Implement glitch-soc logout
This commit is contained in:
parent
59455f9ece
commit
10b4378a68
3 changed files with 43 additions and 1 deletions
|
|
@ -116,6 +116,12 @@ export const handleGlitchRequest = async (
|
|||
path = "/auth/sign_in.html";
|
||||
}
|
||||
|
||||
if (path === "/auth/sign_out") {
|
||||
if (req.method === "POST") {
|
||||
return redirect("/api/auth/mastodon-logout", 307);
|
||||
}
|
||||
}
|
||||
|
||||
// Redirect / to /index.html
|
||||
if (path === "/" || path === "") path = "/index.html";
|
||||
// If path doesn't have an extension (e.g. /about), serve index.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue