Files
sites/src/routes/+page.server.js
2024-06-20 23:20:51 +02:00

18 lines
555 B
JavaScript

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, ""))
}
};