Apparently Response.redirect does not work with relative paths
This commit is contained in:
parent
1e35a11951
commit
9bb2d7396d
@ -1,3 +1,8 @@
|
||||
export async function onRequestGet(context: RequestContext) {
|
||||
return Response.redirect("/api/auth/oauth");
|
||||
export async function onRequestGet(_context: RequestContext) {
|
||||
return new Response(null, {
|
||||
headers: {
|
||||
location: "/api/auth/oauth",
|
||||
},
|
||||
status: 302,
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user