Move API endpoints to /api
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
const withToken = require("./withToken");
|
||||
const AuthAPI = require("../../AuthAPI");
|
||||
|
||||
function withRevokedToken(scopes, callback) {
|
||||
function withRevokedToken(scopes, done) {
|
||||
withToken(scopes, token => {
|
||||
AuthAPI.revokeToken(token).then(() => {
|
||||
callback(token);
|
||||
done(token);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user