mirror of
https://github.com/logos-storage/logos-storage-frontend.git
synced 2026-01-04 06:13:07 +00:00
UPD upload and download urls
This commit is contained in:
parent
bab13bf214
commit
545df5c5d8
@ -12,9 +12,7 @@ function DownloadTab() {
|
|||||||
console.log(filename);
|
console.log(filename);
|
||||||
console.log(cid);
|
console.log(cid);
|
||||||
fetch(
|
fetch(
|
||||||
`${
|
`/api/codex/v1/content/${cid}`,
|
||||||
nodeInfo.nodeToConnectTo || nodeInfo.baseUrl
|
|
||||||
}/api/codex/v1/download/${cid}`,
|
|
||||||
{
|
{
|
||||||
headers:
|
headers:
|
||||||
(nodeInfo.auth !== null && {
|
(nodeInfo.auth !== null && {
|
||||||
|
|||||||
@ -44,7 +44,7 @@ function UploadTab() {
|
|||||||
var newCid = "";
|
var newCid = "";
|
||||||
try {
|
try {
|
||||||
await axios
|
await axios
|
||||||
.post(`${constants.testApiBaseUrl}/upload`, bytes, {
|
.post(`/api/codex/v1/content`, bytes, {
|
||||||
headers: (nodeInfo.auth !== null && {
|
headers: (nodeInfo.auth !== null && {
|
||||||
"Base-Url": nodeInfo.nodeToConnectTo || nodeInfo.baseUrl,
|
"Base-Url": nodeInfo.nodeToConnectTo || nodeInfo.baseUrl,
|
||||||
"Content-Type": "application/octet-stream",
|
"Content-Type": "application/octet-stream",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user