UPD new upload urls

This commit is contained in:
Shaun Orssaud 2023-11-07 16:19:46 +09:00
parent 32a18a36d3
commit 8368c46020
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -44,7 +44,7 @@ function UploadTab() {
var newCid = "";
try {
await axios
.post(`/api/codex/v1/upload`, bytes, {
.post(`/api/codex/v1/content`, bytes, {
headers: (nodeInfo.auth !== null && {
"Base-Url": nodeInfo.nodeToConnectTo || nodeInfo.baseUrl,
"Content-Type": "application/octet-stream",