Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

category: books #36

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kristinedzu
Copy link

No description provided.

@kristinedzu kristinedzu changed the title commit category: books Mar 2, 2022
Copy link

@lauridsulso lauridsulso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good descriptions

export const action = async function ({ request, params }) {
const form = await request.formData();
if (form.get("_method") === "delete") {
await fetch(`http://localhost:3000/api/books/${params.productId}`, {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👌

const description = form.get("description");
const image = form.get("image");

const uuid = new Date().getTime().toString(16);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont know what I am doing, hopefully these comments get through

{
"title": "Witcher",
"description": "Really nice book",
"image": "https://cdn1.tales.dk/thumbnail/400x0/products/00138/79591/the-last-wish-introducing-the-witcher-now-a-major-netflix-show.jpg",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good with images 🏞 🏙 🌇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants