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

Add create product functionality #6

Closed
wants to merge 13 commits into from
Closed

Conversation

austenstone
Copy link
Member

This pull request introduces functionality for creating new products in the system. The main changes include the addition of a new create function in the model/products.js file and the corresponding route in the routes/products.js file.

New Functionality for Product Creation:

  • model/products.js: Added a create function to insert new products into the database. (create function)
  • routes/products.js: Added a new route to handle product creation requests, supporting both GET and POST methods for receiving product details. (/products/create route)

product.price +
"');";

return db.one(q);

Check failure

Code scanning / CodeQL

Database query built from user-controlled sources High

This query string depends on a
user-provided value
.
This query string depends on a
user-provided value
.
@austenstone austenstone deleted the create-product branch August 15, 2024 17:30
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.

1 participant