commit 18d3b15f5173a78a2a32a6d44c581975cbff668f
parent 78406b0c027c5d024abb4baec2df85831c926b6e
Author: Joris Vink <joris@coders.se>
Date: Mon, 31 Aug 2020 11:06:57 +0200
adjust example indentations
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/api/python.md b/api/python.md
@@ -46,11 +46,11 @@ class MyApp:
domain.route("/", self.index, methods=["get"])
domain.route("^/(0-9)$", self.index_with_args, methods=["get"])
- def index(self, req):
- req.response(200, b'hello')
+ def index(self, req):
+ req.response(200, b'hello')
- def index_with_args(self, req, specified_id):
- req.response(200, specified_id)
+ def index_with_args(self, req, specified_id):
+ req.response(200, specified_id)
koreapp = MyApp()
```