15 lines
551 B
TypeScript
15 lines
551 B
TypeScript
// Ship on push (PY3.1): Cloudflare's redirect after the consent screen.
|
|
import { deps } from "../../../../../../lib/deps.ts";
|
|
import { cloudflareCallbackH } from "../../../../../../lib/ship/http.ts";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export async function GET(req: Request) {
|
|
return cloudflareCallbackH(deps().ship, req, new Date());
|
|
}
|
|
|
|
/** The form that names the org posts back here before the Cloudflare grant is stored (P-Y10). */
|
|
export async function POST(req: Request) {
|
|
return cloudflareCallbackH(deps().ship, req, new Date());
|
|
}
|