Skip to content

Commit

Permalink
Ajoute une route de redirection pour du suivi de clic
Browse files Browse the repository at this point in the history
  • Loading branch information
guillett committed Oct 8, 2024
1 parent 258cf9f commit 2153111
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions supabase/functions/beta-form/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { corsHeaders } from "../_shared/cors.ts";

Deno.serve(async (req) => {
if (req.method === "OPTIONS") {
return new Response("ok", { headers: corsHeaders });
}

return new Response("OK", {
headers: {
...corsHeaders,
"Content-Type": "text/plain",
location:
"https://2a5fd5cb.sibforms.com/serve/MUIFAENh-AOnyqmgHDwofVe_vgHrzUG3rtAgHvRyePOV_PUG_B0GKtfjGMw1VgK6XgpXCeOTQDOVw1a0bQhVVcl6ThIFrQq-JsD2Yt1ehbDpifXyCbI626xz1nTEqqo0RpcIq-J44HhfDDtf1yLtkMQ10X6-Hs3SuKoTVLkuGuRAd1piDGXLt6hIpgvbPbK-7LFtY5fqcbP2mmQ9",
},
status: 302,
});
});

0 comments on commit 2153111

Please sign in to comment.