1
0
Fork 0

Foxx: Upgrade Alpha Routes. Fixes #589

This commit is contained in:
Lucas Dohmen 2013-09-04 10:05:45 +02:00
parent 65705428f1
commit 95e409763d
1 changed files with 12 additions and 0 deletions

View File

@ -486,6 +486,18 @@
return result;
});
addTask("removeOldFoxxRoutes", "Remove all old Foxx Routes", function () {
var potentialFoxxes = getCollection('_routing');
potentialFoxxes.iterate(function (maybeFoxx) {
if (maybeFoxx.foxxMount) {
// This is a Foxx! Let's delete it
potentialFoxxes.remove(maybeFoxx._id);
}
});
return true;
});
// loop through all tasks and execute them
console.log("Found " + allTasks.length + " defined task(s), "