aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--docs/api/index.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/api/index.py b/docs/api/index.py
new file mode 100644
index 0000000..28bff7d
--- /dev/null
+++ b/docs/api/index.py
@@ -0,0 +1,9 @@
+from sanic import Sanic
+from sanic.response import json
+app = Sanic()
+
+
+@app.route('/')
+@app.route('/<path:path>')
+async def index(request, path=""):
+ return json({'hello': path})