Browse Source

server update

master
cailean 4 months ago
parent
commit
9e79b272cf
  1. 2
      server.js
  2. 2
      tree.txt

2
server.js

@ -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.' });
}

2
tree.txt

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save