You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
468 B
17 lines
468 B
let db = require("../config/db.js");
|
|
|
|
module.exports = {
|
|
getPolygons : function (req, res) {
|
|
if (req.query.gameID != null) {
|
|
let query = "CALL getPolygonPoints(\"samdum\");";
|
|
console.log("hi");
|
|
db.get().query(query, function(err, rows){
|
|
if (err) return res.send(400);
|
|
res.send(rows[0]);
|
|
return;
|
|
});
|
|
} else {
|
|
res.send(500);
|
|
}
|
|
}
|
|
} |