symfio-contrib-express

Express plugin for Symfio.

symfio-contrib-express

Express plugin for Symfio.

symfio = require "symfio"
 
container = symfio "example"__dirname
 
container.set "port"80
 
container.inject require "symfio-contrib-express"
 
container.inject (get) ->
  get "/"->
    (req, res) ->
      res.send "Hello World!"

Port for listening. Default value is 3000.

Application middlewares.

Original express module.

Express application.

http.Server instance for express application.

Function used to start server after all plugins is loaded.

get, post, put, delete, patch, etc.

Working like original app methods, but last argument must be controller factory.