subscribe

This commit is contained in:
2024-06-20 23:20:51 +02:00
parent ca2c77ad33
commit d269814488
2 changed files with 50 additions and 16 deletions

View File

@@ -0,0 +1,18 @@
import { env } from '$lib';
/** @type {import('./$types').Actions} */
export const actions = {
default: async (event) => {
const body = await event.request.formData();
const email = body.get("email");
// let res = await event.fetch(env.api_url + "/blog/signup", {
// method: "post",
// body: JSON.stringify({
// email,
// })
// });
console.log("env", env.sites_url);
console.log("id", event.request.url.replace(env.sites_url, ""))
}
};