From: Alexis Laferrière Date: Sat, 21 May 2016 17:16:05 +0000 (-0400) Subject: xymus.net: update xymus.net with the API for the mobile client X-Git-Url: http://nitlanguage.org xymus.net: update xymus.net with the API for the mobile client Signed-off-by: Alexis Laferrière --- diff --git a/lib/nitcorn/examples/src/xymus_net.nit b/lib/nitcorn/examples/src/xymus_net.nit index 1233db4..13ecc60 100644 --- a/lib/nitcorn/examples/src/xymus_net.nit +++ b/lib/nitcorn/examples/src/xymus_net.nit @@ -23,6 +23,7 @@ import privileges # Use actions defined by contribs import tnitter import benitlux::benitlux_controller +import benitlux::benitlux_restful import opportunity::opportunity_controller import nitiwiki::wiki_edit @@ -173,6 +174,7 @@ var vps_vh = new VirtualHost("vps.xymus.net:80") var tnitter_vh = new VirtualHost("tnitter.xymus.net:80") var pep8_vh = new VirtualHost("pep8.xymus.net:80") var benitlux_vh = new VirtualHost("benitlux.xymus.net:80") +var benitlux_admin_vh = new VirtualHost("localhost:8081") var factory = new HttpFactory.and_libevent factory.config.virtual_hosts.add default_vh @@ -180,6 +182,7 @@ factory.config.virtual_hosts.add vps_vh factory.config.virtual_hosts.add tnitter_vh factory.config.virtual_hosts.add pep8_vh factory.config.virtual_hosts.add benitlux_vh +factory.config.virtual_hosts.add benitlux_admin_vh # Ports are open, drop to a low-privileged user if we are root var user_group = new UserGroup("nitcorn", "nitcorn") @@ -228,6 +231,8 @@ benitlux_vh.routes.add new Route("/push/", benitlux_push) benitlux_vh.routes.add new Route("/static/", shared_file_server) benitlux_vh.routes.add new Route(null, benitlux_sub) +benitlux_admin_vh.routes.add new Route(null, new BenitluxAdminAction(benitlux_db)) + # Opportunity service var opportunity = new OpportunityWelcome var opportunity_rest = new OpportunityRESTAction