@sjcrh/proteinpaint-server 2.70.4-0 → 2.70.4-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/routes/tiaimages.js +3 -3
- package/src/app.js +8 -8
package/package.json
CHANGED
package/routes/tiaimages.js
CHANGED
|
@@ -34,7 +34,7 @@ function init({ genomes }) {
|
|
|
34
34
|
const sampleId = req.query.sampleId;
|
|
35
35
|
if (!sampleId)
|
|
36
36
|
throw "invalid sampleId";
|
|
37
|
-
const sessionResponse = await axios.get(
|
|
37
|
+
const sessionResponse = await axios.get(`${serverconfig.tileServerURL}/tileserver/session_id`, { withCredentials: true });
|
|
38
38
|
const setCookieHeader = sessionResponse.headers["set-cookie"];
|
|
39
39
|
const sessionId = setCookieHeader && setCookieHeader[0].split(";")[0].split("=")[1];
|
|
40
40
|
console.log("sessionId", sessionId);
|
|
@@ -49,7 +49,7 @@ function init({ genomes }) {
|
|
|
49
49
|
);
|
|
50
50
|
const fname = `${sampleTiaTileServer}/${images[0]}`;
|
|
51
51
|
const data = qs.stringify({ slide_path: fname });
|
|
52
|
-
const putResponse = await axios.put(
|
|
52
|
+
const putResponse = await axios.put(`${serverconfig.tileServerURL}/tileserver/slide`, data, {
|
|
53
53
|
withCredentials: true,
|
|
54
54
|
headers: {
|
|
55
55
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
@@ -57,7 +57,7 @@ function init({ genomes }) {
|
|
|
57
57
|
// Include the session_id in the headers
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
const getResponse = await axios.get(
|
|
60
|
+
const getResponse = await axios.get(`${serverconfig.tileServerURL}/tileserver/slide`, {
|
|
61
61
|
withCredentials: true,
|
|
62
62
|
headers: {
|
|
63
63
|
Cookie: `session_id=${sessionId}`
|