mirror of
https://github.com/ThunixdotNet/thunix_api.git
synced 2026-06-24 10:59:24 +00:00
Refractor thunix_api to use flask_rest package
This commit is contained in:
12
endpoints/teapot.py
Normal file
12
endpoints/teapot.py
Normal 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
|
||||
Reference in New Issue
Block a user