From: Alexis Laferrière Date: Sat, 5 Dec 2015 03:58:58 +0000 (-0500) Subject: lib/nitcorn: add a wiki modification form to xymus.net X-Git-Tag: v0.8~50^2~3 X-Git-Url: http://nitlanguage.org?hp=c6baaf7b69abb4a32cf2a77911ff39fd4657f032 lib/nitcorn: add a wiki modification form to xymus.net 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 e0a4a10..e4bf8a3 100644 --- a/lib/nitcorn/examples/src/xymus_net.nit +++ b/lib/nitcorn/examples/src/xymus_net.nit @@ -24,6 +24,7 @@ import privileges import tnitter import benitlux::benitlux_controller import opportunity::opportunity_controller +import nitiwiki::wiki_edit # Header for the whole site class MasterHeader @@ -169,7 +170,6 @@ tnitter_vh.routes.add new Route("/rest/", new TnitterREST) tnitter_vh.routes.add new Route("/push/", new TnitterPush) tnitter_vh.routes.add new Route(null, tnitter) - # Pep/8 Analysis is only a file server. It is available at `pep8.xymus.net` # and through the global/default file server at `xymus.net/pep8/` # @@ -187,11 +187,17 @@ 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) +# Opportunity service 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) +# Nitiwiki modification form +var passwords = "nitiwiki_passwords".to_path.read_lines +assert passwords.not_empty +default_vh.routes.add new Route("/edit", new EditAction("http://xymus.net/", "/home/xymus/projects/wiki/config.ini", passwords)) + # 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/")