import { ChecksSafeRedirectionPath } from "@services/Api"; import { PostWithOptionalResponse } from "@services/Client"; interface SafeRedirectionResponse { ok: boolean; } export async function checkSafeRedirection(uri: string) { return PostWithOptionalResponse(ChecksSafeRedirectionPath, { uri }); }