server update
This commit is contained in:
@@ -39,6 +39,8 @@ loadVPTree()
|
||||
app.post('/search/', (req, res) => {
|
||||
const { vector } = req.body;
|
||||
|
||||
console.log(vector)
|
||||
|
||||
if (!Array.isArray(vector) || vector.length !== 7 || !vector.every(num => typeof num === 'number')) {
|
||||
return res.status(400).send({ success: false, message: 'Invalid vector provided. It must be an array of 7 floating-point numbers.' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user