User can now create a polygon

This commit is contained in:
Fan-Wu Yang
2018-09-30 03:12:08 +13:00
parent b448b2537d
commit b8c886ff4c
6 changed files with 229 additions and 141 deletions
+9
View File
@@ -13,4 +13,13 @@ module.exports = function (server) {
return next();
});
server.post("/polygon", function (req, res, next) {
if (versioner.currentVersion === 1) {
apiV1.isPolygon(req, res);
return next();
}
res.send(200);
return next();
});
};