FreshMozzarella / wardrobewave

0 stars 2 forks source link

Grow #10

Open FreshMozzarella opened 1 year ago

FreshMozzarella commented 1 year ago
  1. We could add a categories side bar on the front end. We have the backend category routes, controllers, model, and we want to implement it on the frontend

async function show(req,res,next) { try { // update one Category const individualCategory = await Category.findById(req.params.id); const categoryProducts = await Product.find({categories : req.params.id}) res.json({category : individualCategory, products : categoryProducts }) } catch (error) { //send error res.status(400).json(error); } };

  1. The users model in the back end, and implementing JWT tokens for a more secure user experience
krabecb commented 1 year ago

I agree, definitely implement categories and JWT!