mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 15:19:44 +02:00
ref: Refactoring
This commit is contained in:
parent
743f2956c8
commit
40c04c35ff
23 changed files with 96 additions and 91 deletions
|
@ -5,14 +5,14 @@ import socket from './socket';
|
|||
|
||||
const createAccessToken = (data, headers) => http.post('/access-tokens', data, headers);
|
||||
|
||||
const exchangeToAccessToken = (data, headers) =>
|
||||
http.post('/access-tokens/exchange', data, headers);
|
||||
const exchangeForAccessTokenUsingOidc = (data, headers) =>
|
||||
http.post('/access-tokens/exchange-using-oidc', data, headers);
|
||||
|
||||
const deleteCurrentAccessToken = (headers) =>
|
||||
socket.delete('/access-tokens/me', undefined, headers);
|
||||
|
||||
export default {
|
||||
createAccessToken,
|
||||
exchangeToAccessToken,
|
||||
exchangeForAccessTokenUsingOidc,
|
||||
deleteCurrentAccessToken,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue