summaryrefslogtreecommitdiff
path: root/server-solsync.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-04-08 02:41:29 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-04-08 02:41:29 -0400
commit4dec62b52e9ee5982fc3587ea6c8eefc21d76417 (patch)
tree4603d6c7a34eed267b811efa76dc9a43642d4a93 /server-solsync.py
parent575a267f4f24b1363c63b92a81f1fa0b5c4cc856 (diff)
start soledad sync
Diffstat (limited to 'server-solsync.py')
-rw-r--r--server-solsync.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/server-solsync.py b/server-solsync.py
new file mode 100644
index 0000000..a228845
--- /dev/null
+++ b/server-solsync.py
@@ -0,0 +1,18 @@
+from klein import run, route
+
+import soledad_sync
+
+
+@route('/start-sync')
+def home(request):
+ print "GOT REQUEST FOR STARTING SYNC..."
+ d = soledad_sync.upload_soledad_stuff()
+ return d
+
+
+@route('/ping')
+def ping(request):
+ return 'easy!'
+
+if __name__ == "__main__":
+ run("localhost", 8080)