Mostly so that it's easier to cut the next patch release for Fresh.
This reverts commit e3508c3054.
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { FreshContext } from "$fresh/server.ts";
|
||||
|
||||
export const handler = {
|
||||
GET(_req: Request, ctx: FreshContext) {
|
||||
const rawStatus = ctx.url.searchParams.get("status");
|
||||
const status = rawStatus !== null ? Number(rawStatus) : undefined;
|
||||
const location = ctx.url.searchParams.get("path") ?? "/";
|
||||
return ctx.redirect(location, status);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user