xymus.net: update xymus.net nitcorn config to include an opportunity client
authorAlexis Laferrière <alexis.laf@xymus.net>
Wed, 29 Oct 2014 21:59:13 +0000 (17:59 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 30 Oct 2014 17:20:40 +0000 (13:20 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

examples/nitcorn/Makefile
examples/nitcorn/src/xymus_net.nit
tests/sav/xymus_net.res

index 1c55458..510983c 100644 (file)
@@ -4,4 +4,4 @@ all:
 
 xymus.net:
        mkdir -p bin/
-       ../../bin/nitg --dir bin/ -I ../../contrib/tnitter/src/ -I ../../contrib/benitlux/src/ src/xymus_net.nit
+       ../../bin/nitg --dir bin/ -I ../../contrib/tnitter/src/ -I ../../contrib/benitlux/src/ -I ../../contrib/opportunity/src/ src/xymus_net.nit
index 9c4b53c..74f885a 100644 (file)
@@ -23,6 +23,7 @@ import privileges
 # Use actions defined by contribs
 import tnitter
 import benitlux_controller
+import opportunity_controller
 
 # Header for the whole site
 class MasterHeader
@@ -133,6 +134,11 @@ default_vh.routes.add new Route("/benitlux/", benitlux_sub)
 benitlux_vh.routes.add new Route("/rest/", benitlux_rest)
 benitlux_vh.routes.add new Route(null, benitlux_sub)
 
+var opportunity = new OpportunityWelcome
+var opportunity_rest = new OpportunityRESTAction
+default_vh.routes.add new Route("/opportunity/rest/", opportunity_rest)
+default_vh.routes.add new Route("/opportunity/", opportunity)
+
 # We use a special file server for the path `xymus.net/ens` only to display
 # a different header.
 var file_server_ens = new FileServer("/var/www/ens/")
index a2c25d2..77faf65 100644 (file)
@@ -1,2 +1,3 @@
 ../examples/nitcorn/src/xymus_net.nit:24,8--14: Error: cannot find module tnitter from nitcorn. tried alt, ../lib, ../examples/nitcorn
 ../examples/nitcorn/src/xymus_net.nit:25,8--26: Error: cannot find module benitlux_controller from nitcorn. tried alt, ../lib, ../examples/nitcorn
+../examples/nitcorn/src/xymus_net.nit:26,8--29: Error: cannot find module opportunity_controller from nitcorn. tried alt, ../lib, ../examples/nitcorn