summaryrefslogtreecommitdiff
path: root/examples-for-debugging/Flask_test/pbserver.py
blob: 400883af2409fe84df503d5228ddeeef4eff2ab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/python2.7

#static routes
#{{{
@route('/im/<filename>')
def server_static(filename):
    return static_file(filename, root='frontend/im/')
@route('/im')
def server_static():
    return static_file("index.html", root='frontend/im/')
@route('/imgrid')
def server_static():
    return static_file("index.html", root='frontend/imgrid/')
@route('/imgradient')
def server_static():
    return static_file("index.html", root='frontend/imgradient/')
@route('/imlandscape')
def server_static():
    return static_file("index.html", root='frontend/imlandscape/')
@route('/impattern')
def server_static():
    return static_file("index.html", root='frontend/impattern/')
@route('/imbreak')
def server_static():
    return static_file("index.html", root='frontend/imbreak/')
@route('/')
def server_static():
    return static_file("index.html", root='frontend/im/')
@route('/css/<filename>')
def server_static(filename):
    return static_file(filename, root='frontend/css/')
@route('/js/<filename>')
def server_static(filename):
    return static_file(filename, root='frontend/js/')
@route('/img/<filename>')
def server_static(filename):
    return static_file(filename, root='frontend/img/')
#}}}

#run(host='0.0.0.0',  port=8999, debug=True)