Begin work on API endpoint
This commit is contained in:
12
api/views.py
Normal file
12
api/views.py
Normal 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"
|
||||
Reference in New Issue
Block a user