subscribe
This commit is contained in:
18
src/routes/+page.server.js
Normal file
18
src/routes/+page.server.js
Normal 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, ""))
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user