diff --git a/images/v1/sad_panda01.png b/images/v1/sad_panda01.png new file mode 100644 index 0000000..1dd8ce1 Binary files /dev/null and b/images/v1/sad_panda01.png differ diff --git a/main.py b/main.py index de16cba..9fee2fe 100644 --- a/main.py +++ b/main.py @@ -1,20 +1,14 @@ -from bottle import Bottle +from bottle import Bottle, run, static_file app = Bottle() -# Note: We don't need to call run() since our application is embedded within -# the App Engine WSGI application server. - - @app.route('/') def hello(): """Return a friendly HTTP greeting.""" return 'Hello World!' +@app.route('/v1/') +def show_pic(filename): + return static_file(filename, root='images/v1/') -# Define an handler for 404 errors. -@app.error(404) -def error_404(error): - """Return a custom 404 error.""" - return 'Sorry, nothing at this URL.' -Status API Training Shop Blog About +run(app, host='localhost', port=8080, debug=True)