-
Notifications
You must be signed in to change notification settings - Fork 30
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
base: main
Are you sure you want to change the base?
category: books #36
Conversation
There was a problem hiding this 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}`, { |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good with images 🏞 🏙 🌇
No description provided.