UNPKG

sextant

Version:

Chart application flows, then implement them in code

13 lines (12 loc) 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDatabase = exports.saveDatabase = void 0; exports.saveDatabase = function (database) { return fetch("http://localhost:4000/saveToDatabase", { method: "POST", body: JSON.stringify(database), }).then(function (res) { return res.json(); }); }; exports.getDatabase = function () { return fetch("http://localhost:4000/database").then(function (res) { return res.json(); }); };