0
exports.createBootcamp = async (req, res, next) => {
    const bootcamp = await Bootcamp.create(req.body);

    res.status(201).json({
        success: true,
        data: bootcamp
    });
};

错误:

Bootcamp validation failed: location.coordinates: Path `location.coordinates` is required., location.type: Path `location.type` is required. [nodemon] app crashed - waiting for file changes before starting...
4

0 回答 0