Skip to content

Instantly share code, notes, and snippets.

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);
}
}
var tasks = [];
var STATE_P = '진행';
var STATE_C = '완료';
var addTask = (function() {
var id = 0;
return function(title) {
tasks.push({