"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(); });
};
