mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Second round feedback
This commit is contained in:
11
python/ql/test/library-tests/frameworks/bottle/basic_test.py
Normal file
11
python/ql/test/library-tests/frameworks/bottle/basic_test.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Source: https://bottlepy.org/docs/dev/tutorial.html#the-application-object
|
||||
from bottle import Bottle, run
|
||||
|
||||
app = Bottle()
|
||||
|
||||
@app.route('/hello') # $ routeSetup="/hello"
|
||||
def hello(): # $ requestHandler
|
||||
return "Hello World!" # $ HttpResponse responseBody="Hello World!" mimetype=text/html
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host='localhost', port=8080)
|
||||
Reference in New Issue
Block a user