API Initial commit

This commit is contained in:
Umbra Sheep
2018-09-29 17:15:40 +12:00
parent 9af388df0a
commit 3474885574
11 changed files with 10258 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
let db = require("../config/db.js");
module.exports = {
getPolygons : function (res) {
db.get().query("", function(err, rows){
if (err) return res.send(400);
res.send(rows);
return;
});
}
}