This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function SampleMiddleware(options) { | |
| this.mwtype = 'router'; | |
| this.features = ['params', 'query']; | |
| this.before = function(feature) { | |
| console.log(feature.params); | |
| console.log(feature.query); | |
| console.log(options.testVal); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var tasks = []; | |
| var STATE_P = '진행'; | |
| var STATE_C = '완료'; | |
| var addTask = (function() { | |
| var id = 0; | |
| return function(title) { | |
| tasks.push({ |