1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-29 01:59:42 +02:00

Docker, update readme, update dependencies

This commit is contained in:
Maksim Eltyshev 2019-10-01 04:18:33 +05:00
parent 2398199740
commit adbcb67f03
30 changed files with 1202 additions and 1744 deletions

View file

@ -13,7 +13,7 @@ const http = {};
return result;
}, new FormData());
return fetch(`${Config.API_URL}${Config.API_PATH}${url}`, {
return fetch(`${Config.SERVER_BASE_URL}/api${url}`, {
method,
headers,
body: formData,

View file

@ -5,7 +5,7 @@ import Config from '../constants/Config';
const io = sailsIOClient(socketIOClient);
io.sails.url = Config.API_URL;
io.sails.url = Config.SERVER_BASE_URL;
io.sails.autoConnect = false;
io.sails.reconnection = true;
io.sails.useCORSRouteToGetCookie = false;
@ -22,7 +22,7 @@ socket.connect = socket._connect; // eslint-disable-line no-underscore-dangle
method,
data,
headers,
url: `${Config.API_PATH}${url}`,
url: `/api${url}`,
},
(_, { body, error }) => {
if (error) {