1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-28 16:48:04 +02:00
onion/js/fetchers/application_fetcher.js

22 lines
449 B
JavaScript

'use strict';
import request from '../utils/request';
let ApplicationFetcher = {
/**
* Fetch the registered applications of a user from the API.
*/
fetch() {
return request('applications');
},
refreshToken(applicationName) {
return request('application_token_refresh', {
method: 'POST',
jsonBody: { name: applicationName }
});
}
};
export default ApplicationFetcher;