MDF not to date yet

This commit is contained in:
Shaun Orssaud 2023-11-07 16:17:41 +09:00
parent 545df5c5d8
commit 32a18a36d3
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ function DownloadTab() {
console.log(filename); console.log(filename);
console.log(cid); console.log(cid);
fetch( fetch(
`/api/codex/v1/content/${cid}`, `/api/codex/v1/download/${cid}`,
{ {
headers: headers:
(nodeInfo.auth !== null && { (nodeInfo.auth !== null && {

View File

@ -44,7 +44,7 @@ function UploadTab() {
var newCid = ""; var newCid = "";
try { try {
await axios await axios
.post(`/api/codex/v1/content`, bytes, { .post(`/api/codex/v1/upload`, 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",