|
|
|
@ -5,7 +5,6 @@ let areaFunctions = require("./areaFunctions.js");
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module.exports = {
|
|
|
|
getPolygons : function (req, res) {
|
|
|
|
getPolygons : function (req, res) {
|
|
|
|
mathFunc.calculateArea([]);
|
|
|
|
|
|
|
|
if (req.query.gameID != null) {
|
|
|
|
if (req.query.gameID != null) {
|
|
|
|
let query = "CALL getPolygonPoints(\"" + req.query.gameID + "\");";
|
|
|
|
let query = "CALL getPolygonPoints(\"" + req.query.gameID + "\");";
|
|
|
|
db.get().query(query, function(err, rows){
|
|
|
|
db.get().query(query, function(err, rows){
|
|
|
|
|