| 
					
				 | 
			
			
				@@ -28,6 +28,7 @@ class Server { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	private readonly routesPath?: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	private readonly viewEngine?: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	private readonly viewsPath?: string; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	private readonly options?: {[key: string]: any}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	public constructor(properties: ServerProperties) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		this.instance = express(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -42,6 +43,7 @@ class Server { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		this.routesPath = properties.routesPath; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		this.viewEngine = properties.viewEngine; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		this.viewsPath = properties.viewsPath; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		this.options = properties.options; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		this.initialized = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -172,6 +174,10 @@ class Server { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		return this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	public getOption(key: string): any { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		return this.options ? this.options[key] || null : null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	public start(callback?: () => any): void { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if(!this.initialized) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			throw new ServerNotInitializedException(); 
			 |