Add Docker dev environment and initial code

This commit is contained in:
Lexi / Zoe 2022-03-25 20:03:33 +01:00
parent 484b0210bb
commit 0be947b3d1
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
10 changed files with 173 additions and 150 deletions

0
tofu_api/__init__.py Normal file
View file

10
tofu_api/app.py Normal file
View 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])