Move API endpoints to /api
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
const BlacklistAPI = require("../../BlacklistAPI");
|
||||
|
||||
function withBlacklist(blacklist, callback) {
|
||||
return Promise.all(blacklist.map(BlacklistAPI.addPackage)).then(callback);
|
||||
function withBlacklist(blacklist, done) {
|
||||
Promise.all(blacklist.map(BlacklistAPI.addPackage)).then(done);
|
||||
}
|
||||
|
||||
module.exports = withBlacklist;
|
||||
|
||||
Reference in New Issue
Block a user