diff --git a/app/api/routes/node_storage.py b/app/api/routes/node_storage.py index efdda10..807b71a 100644 --- a/app/api/routes/node_storage.py +++ b/app/api/routes/node_storage.py @@ -39,11 +39,11 @@ async def s_api_v1_storage_post(request): stored_content = request.ctx.db_session.query(StoredContent).filter(StoredContent.hash == file_hash).first() if stored_content: stored_cid = stored_content.cid.serialize_v1() - return { + return response.json({ "content_sha256": file_hash, "content_id_v1": stored_cid, "content_url": f"dmy://storage?cid={stored_cid}", - } + }) new_content = StoredContent( type="local/content_bin",