Mostly so that it's easier to cut the next patch release for Fresh.
This reverts commit e3508c3054.
14 lines
280 B
TypeScript
14 lines
280 B
TypeScript
import { Handlers } from "$fresh/server.ts";
|
|
|
|
export const handler: Handlers<unknown, { data: string }> = {
|
|
GET(req) {
|
|
const url = new URL(req.url);
|
|
return new Response(null, {
|
|
status: 302,
|
|
headers: {
|
|
"Location": url.origin,
|
|
},
|
|
});
|
|
},
|
|
};
|