diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-18 10:08:55 -0800 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-11-18 10:08:55 -0800 |
| commit | 67033f5c20c9c1c6653cdb3e66a74539d634ec64 (patch) | |
| tree | e3981e3d035d63995a78b0d2d455302f6875fb88 /share/frontend/imdither/run.py | |
| parent | 348494657b7366263de6baf09ddfc6a528fac594 (diff) | |
cleanup continued
Diffstat (limited to 'share/frontend/imdither/run.py')
| -rwxr-xr-x | share/frontend/imdither/run.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/share/frontend/imdither/run.py b/share/frontend/imdither/run.py deleted file mode 100755 index 3fed429..0000000 --- a/share/frontend/imdither/run.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/python2.7 -from bottle import route, run, static_file, request -import makeDither -import urlDownload - -@route('/') -def server_static(): - return static_file("imdither.html", root='./') - -@route('/dithers/<filename>') -def server_static(filename): - return static_file(filename, root='./dithers/') - -@route('/img/<filename>') -def server_static(filename): - return static_file(filename, root='./img/') - -@route('/<filename>') -def server_static(filename): - return static_file(filename, root='./') - -@route('/process', method='POST') -def process_image(): - url = request.forms.get('url') - params = request.forms.get('params') - download = urlDownload.UrlDownload(url) - tempfile = download.dir + download.filename - makeDither.Dither(tempfile) - -@route('/status', method='GET') -def show_status(): - pass -#run(host='0.0.0.0', port=4111, debug=True) -run(server='flup', host='localhost', port=4111, debug=True) - |
