mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 07:09:44 +02:00
fix: OIDC finalization and refactoring
This commit is contained in:
parent
aae69cb5e4
commit
8e0c60f5be
70 changed files with 753 additions and 427 deletions
|
@ -5,13 +5,15 @@ import Config from '../constants/Config';
|
|||
const http = {};
|
||||
|
||||
// TODO: add all methods
|
||||
['POST'].forEach((method) => {
|
||||
['GET', 'POST'].forEach((method) => {
|
||||
http[method.toLowerCase()] = (url, data, headers) => {
|
||||
const formData = Object.keys(data).reduce((result, key) => {
|
||||
result.append(key, data[key]);
|
||||
const formData =
|
||||
data &&
|
||||
Object.keys(data).reduce((result, key) => {
|
||||
result.append(key, data[key]);
|
||||
|
||||
return result;
|
||||
}, new FormData());
|
||||
return result;
|
||||
}, new FormData());
|
||||
|
||||
return fetch(`${Config.SERVER_BASE_URL}/api${url}`, {
|
||||
method,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue