18 lines
555 B
JavaScript
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, ""))
|
|
}
|
|
}; |