sean@0: from bottle import get, post, request, view, response, route, template, run, static_file, error sean@0: sean@0: @route('/') sean@0: @view('hello_template') sean@0: def call_dashboard(): sean@0: return dict() sean@0: sean@0: @route('/config') sean@0: def call_config(): sean@0: return 'Not implemented yet' sean@0: sean@0: sean@0: @route('/static/') sean@0: def server_static(filepath): sean@0: return static_file(filepath, root='./static_files/') sean@0: sean@0: @error(404) sean@0: def error404(error): sean@0: return 'Nothing here, sorry
404' sean@0: sean@0: sean@0: run(host='localhost', port=8080, debug=True)