aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-07-06 13:43:30 +0800
committerGitHub <noreply@github.com>2023-07-06 13:43:30 +0800
commit32b4ae87ec729b394fd9167c5bfb977d11f4d5f6 (patch)
tree7e9c34d49157ce5f74d24cf164fbf1b53aa1ed95 /docs
parent860522395546e1f1032cbf6469fde1aa7db6ee28 (diff)
downloadHydroRoll-32b4ae87ec729b394fd9167c5bfb977d11f4d5f6.tar.gz
HydroRoll-32b4ae87ec729b394fd9167c5bfb977d11f4d5f6.zip
Create index.py
Diffstat (limited to 'docs')
-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})