Refractor thunix_api to use flask_rest package

This commit is contained in:
fosslinux
2020-01-27 08:31:57 +11:00
parent 59e8338320
commit a7803829b5
8 changed files with 118 additions and 118 deletions

12
endpoints/teapot.py Normal file
View File

@@ -0,0 +1,12 @@
from flask_restful import Resource
class Teapot(Resource):
def get(self):
payload = [
{
"tea": "available",
"height": "short",
"width": "stout"
}
]
return payload