summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/_web.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-09-06 09:25:46 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-06 09:25:46 -0400
commitb047beb3e50a541564d2ab6ff17491608a630101 (patch)
tree28acf5d079d30748a054c9af67cf72c29c4f7024 /src/leap/bitmask/core/_web.py
parent01005b92a78aedfe80dcf24644dd361d10ac4113 (diff)
[pkg] package bitmask_www
Diffstat (limited to 'src/leap/bitmask/core/_web.py')
-rw-r--r--src/leap/bitmask/core/_web.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/bitmask/core/_web.py b/src/leap/bitmask/core/_web.py
index 2c9f279..1a32fed 100644
--- a/src/leap/bitmask/core/_web.py
+++ b/src/leap/bitmask/core/_web.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# _web.py
-# Copyright (C) 2016 LEAP
+# Copyright (C) 2016 LEAP Encryption Access Project
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -46,14 +46,16 @@ class HTTPDispatcherService(service.Service):
def startService(self):
webdir = os.path.abspath(
- pkg_resources.resource_filename("leap.bitmask_js", "public"))
+ pkg_resources.resource_filename('leap.bitmask_www', 'public'))
root = File(webdir)
api = Api(CommandDispatcher(self._core))
- root.putChild(u"API", api)
+ root.putChild(u'API', api)
site = Site(root)
self.site = site
+
+ # TODO use endpoints instead
self.listener = reactor.listenTCP(self.port, site,
interface='127.0.0.1')
@@ -63,6 +65,7 @@ class HTTPDispatcherService(service.Service):
class Api(Resource):
+
isLeaf = True
def __init__(self, dispatcher):