text: const Dev = require('../models/Dev');
  
  module.exports = {
      async store(req, res) {
          const { devId } = req.params;
          const { user } = req.headers;
          const loggedDev = await Dev.findById(user);
          const targedDev = await Dev.findById(devId);
  
          if (!targedDev) {
              return res.status(400).json({ error: 'Dev not exists' });
          }
          loggedDev.dislikes.push(targedDev._id);
          await loggedDev.save();
  
          return res.json(loggedDev);
      }
  };