diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-17 22:49:33 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-17 22:49:33 -0800 |
| commit | ad0283d00256228d58828c878425d37398b9c05a (patch) | |
| tree | 78e7c097a88b04db3feb4fbca5cb585211bb5835 /examples-for-debugging/Flask_test/pbserver.py | |
| parent | 2f550032693af38a7a5b528336112c904d6b0792 (diff) | |
finishing gallery
Diffstat (limited to 'examples-for-debugging/Flask_test/pbserver.py')
| -rwxr-xr-x | examples-for-debugging/Flask_test/pbserver.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/examples-for-debugging/Flask_test/pbserver.py b/examples-for-debugging/Flask_test/pbserver.py new file mode 100755 index 0000000..400883a --- /dev/null +++ b/examples-for-debugging/Flask_test/pbserver.py @@ -0,0 +1,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) |
