Comparing version 1.0.0-alpha-03 to 1.0.0-alpha-04
@@ -33,8 +33,8 @@ 'use strict'; | ||
* let logger = this.getComponent('appix/logger'); | ||
* logger.info('My message', dataObject); | ||
* logger.error('My message', dataObject); | ||
* logger.warn('My message', dataObject); | ||
* logger.trace('My message', dataObject); | ||
* logger.fatal('My message', dataObject); | ||
* logger.debug('My message', dataObject); | ||
* logger.info('My message', {}); | ||
* logger.error('My message', {}); | ||
* logger.warn('My message', {}); | ||
* logger.trace('My message', {}); | ||
* logger.fatal('My message', {}); | ||
* logger.debug('My message', {}); | ||
* } | ||
@@ -41,0 +41,0 @@ * } |
@@ -358,3 +358,3 @@ 'use strict'; | ||
* @name Controller#onEnd | ||
* | ||
* @param {Function} callback destroy callback | ||
* @description | ||
@@ -569,3 +569,6 @@ * On end is an happening on destroy event | ||
* actionLogin() { | ||
* this.setResponseCookie('user', 'id-1', 30) | ||
* this.setResponseCookie('user', 'id-1', 30); | ||
* this.setResponseCookie('user1', 'id-2', 50, '/'); | ||
* this.setResponseCookie('user2', 'id-3', 50, '/', '.igorivanovic.info'); | ||
* this.setResponseCookie('user2', 'id-3', 50, '/', '.igorivanovic.info', true); | ||
* } | ||
@@ -690,3 +693,3 @@ * } | ||
* @description | ||
* Add filter | ||
* Add filter, all filters must be inherited from appix/filter | ||
* @example | ||
@@ -703,3 +706,4 @@ * class MyAppController extends Controller { | ||
* this.addFilter(F3, 10, 'home/index'); // will be executed only on home controller action index | ||
* this.addFilter(F3, 10, 'home/*'); // will be executed on all home controllers actions | ||
* this.addFilter(F4, 10, 'home/*'); // will be executed on all home controllers actions | ||
* this.addFilter(F5, 10, '*'); // apply on all controllers actions | ||
* } | ||
@@ -706,0 +710,0 @@ * |
@@ -613,3 +613,2 @@ 'use strict'; | ||
if (!(controller instanceof Controller)) { | ||
@@ -778,3 +777,3 @@ throw new error.HttpException(500, `${controllerName} must be inherited from @{appix}/controller`, { | ||
error | ||
})) | ||
})); | ||
} | ||
@@ -781,0 +780,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Lightweight application framework with dyependency injection and dynamic type checking for node js", | ||
"version": "1.0.0-alpha-03", | ||
"version": "1.0.0-alpha-04", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "di-node": "0.2.x", |
@@ -1,2 +0,2 @@ | ||
# Appix 1.0.0-alpha-02 [![Build Status](https://travis-ci.org/igorzg/appix.svg?branch=master)](https://travis-ci.org/igorzg/appix) | ||
# Appix 1.0.0-alpha-03 [![Build Status](https://travis-ci.org/igorzg/appix.svg?branch=master)](https://travis-ci.org/igorzg/appix) | ||
* Es6 Node.js framework dev version | ||
@@ -65,3 +65,3 @@ * Lightweight application framework with dyependency injection and dynamic type checking for node js | ||
url: '/favicon.ico', | ||
route: 'home/myfaviconhandler' | ||
route: 'home/Favicon' | ||
} | ||
@@ -68,0 +68,0 @@ ]); |
87811
2933