From 4b670ba2e9d6e849d2ee75d1a1c55a76377744ee Mon Sep 17 00:00:00 2001 From: Ulysse Carion Date: Fri, 24 May 2024 16:23:33 -0700 Subject: [PATCH] use js --- netlify/functions/{saml-post.mts => saml-post.mjs} | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) rename netlify/functions/{saml-post.mts => saml-post.mjs} (72%) diff --git a/netlify/functions/saml-post.mts b/netlify/functions/saml-post.mjs similarity index 72% rename from netlify/functions/saml-post.mts rename to netlify/functions/saml-post.mjs index 6245fa9..593429a 100644 --- a/netlify/functions/saml-post.mts +++ b/netlify/functions/saml-post.mjs @@ -1,6 +1,4 @@ -import type { Config, Context } from "@netlify/functions" - -export default async (req: Request, context: Context) => { +export default async (req, context) => { const formData = await req.formData() let query = "" @@ -16,6 +14,6 @@ export default async (req: Request, context: Context) => { }) } -export const config: Config = { +export const config = { path: "/saml-post/:appId" };