blob: a228845aa1612090b4182ca5bc1dd4f1e0b67ba0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
|