Add Docker dev environment and initial code
This commit is contained in:
parent
484b0210bb
commit
0be947b3d1
10 changed files with 173 additions and 150 deletions
0
tofu_api/__init__.py
Normal file
0
tofu_api/__init__.py
Normal file
10
tofu_api/app.py
Normal file
10
tofu_api/app.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
def app(environ, start_response):
|
||||
"""Simplest possible application object"""
|
||||
data = b'Hello, wooorld!\n'
|
||||
status = '200 OK'
|
||||
response_headers = [
|
||||
('Content-type', 'text/plain'),
|
||||
('Content-Length', str(len(data)))
|
||||
]
|
||||
start_response(status, response_headers)
|
||||
return iter([data])
|
||||
Loading…
Add table
Add a link
Reference in a new issue