node package manager

em-multilang

multilang middleware for ee-webservice

em-multilang

multilang middleware for ee-webservice

var   Webservice 	= require( "ee-webservice" )
	, Mutlilang 	= require( "em-multilang" );



var service = new Webservice( {
	webserver: {
		http: {
			  interface: 	Webservice.Webserver.IF_ANY 
			, port: 		12001
		}
	}
} );


service.use( new Mutlilang( {
	  defaultLanguage: 		"en"
	, languages: 			[ "en", "fr", "it", "de" ]
	, externalRedirect: 	false
} ) );


service.listen();