]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/HelloWorld.hs
staticDir
[Lucu.git] / examples / HelloWorld.hs
index a2c6d50c02795a8959fb1c54c2b5a32d100ff95e..43e21d2b5e039c89b58e0e973072c02041310dab 100644 (file)
@@ -20,8 +20,15 @@ main :: IO ()
 main = let config    = defaultConfig { cnfServerPort = PortNumber 9999 }
            resources = mkResTree [ ( []
                                    , helloWorld )
-                                 , ( ["compilers"]
-                                   , staticFile "/etc/compilers" )
+
+                                 , ( ["index.html"]
+                                   , staticFile "/Users/admin/Sites/index.html" )
+
+                                 , ( ["urandom"]
+                                   , staticFile "/dev/urandom" )
+
+                                 , ( ["inc"]
+                                   , staticDir "/usr/include" )
                                  ]
        in
          do installHandler sigPIPE Ignore Nothing