aboutsummaryrefslogtreecommitdiffstats
path: root/libpathod/pathod.py
diff options
context:
space:
mode:
Diffstat (limited to 'libpathod/pathod.py')
-rw-r--r--libpathod/pathod.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py
index ac56619b..a088120d 100644
--- a/libpathod/pathod.py
+++ b/libpathod/pathod.py
@@ -238,9 +238,7 @@ class Pathod(tcp.TCPServer):
self.timeout, self.logreq, self.logresp, self.hexdump = timeout, logreq, logresp, hexdump
self.explain = explain
- if not noapi:
- app.api()
- self.app = app.app
+ self.app = app.make_app(noapi)
self.app.config["pathod"] = self
self.log = []
self.logid = 0