Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2018-10-07 16:27:38 +0300
committerPhie <phie@phie.ovh>2018-10-07 16:27:38 +0300
commit84ccfe90c5afd257f964a56207cfd10b3310ba32 (patch)
treed3dd8bb4c3dd3a0f7dd9b3554efba8c5ac0bda70 /main.js
parent352083e71a73aee3847a2979ed6e6f947536e03e (diff)
starting implementing false server
Diffstat (limited to 'main.js')
-rw-r--r--main.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.js b/main.js
index b8b4edd..286e0ed 100644
--- a/main.js
+++ b/main.js
@@ -222,7 +222,10 @@ exports.getPath = function (path) {
return app.getPath(path)
}
+exports.sendRequestToServer = function (method, path, data, callback) {
+ server.handle(method, path, data, callback);
+}
+
exports.createWindow = createWindow;
var server = require("./server/server");
-server.startListening(); \ No newline at end of file