Begin work on API endpoint

This commit is contained in:
2022-07-21 13:40:11 +01:00
parent 80c016761f
commit 4a8605626a
5 changed files with 27 additions and 4 deletions

12
api/views.py Normal file
View File

@@ -0,0 +1,12 @@
from klein import Klein
class API(object):
"""
Our API webapp.
"""
app = Klein()
@app.route("/test", methods=["GET"])
def hello(self, request):
return "Hello"