Skip to content

Commit 770182d

Browse files
committed
Initial commit
1 parent ae2dcdd commit 770182d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Client-side/src/DocumentEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const DocumentEditor = () => {
4747
containerRef.current.documentEditor.documentName = fileName;
4848

4949
try {
50-
await fetch(hostUrl + `api/documents/${selectedDocId}/saveDocumentAsync`, {
50+
await fetch(hostUrl + `api/PostgresDocumentStorage/${selectedDocId}/saveDocumentAsync`, {
5151
method: 'POST',
5252
headers: { 'Content-Type': 'application/json' },
5353
body: JSON.stringify({ Base64Content: base64Data, FileName: fileName })

Client-side/src/FileManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const FileManager = ({ onFileSelect, onFileManagerLoaded, editorRef, fileManager
2222
// Loads a document by its ID into the DocumentEditor
2323
const loadDocument = async (docId) => {
2424
try {
25-
const response = await fetch(hostUrl + `api/documents/${docId}/getDocumentAsync`);
25+
const response = await fetch(hostUrl + `api/PostgresDocumentStorage/${docId}/getDocumentAsync`);
2626
const data = await response.text();
2727
if (editorRef?.current?.documentEditor) {
2828
editorRef.current.documentEditor.open(data); // Load content into the editor
@@ -62,8 +62,8 @@ const FileManager = ({ onFileSelect, onFileManagerLoaded, editorRef, fileManager
6262
id="azure-file-manager"
6363
ref={fileManagerRef}
6464
ajaxSettings={{
65-
url: hostUrl + 'api/documents', // API for file management
66-
downloadUrl: hostUrl + 'api/documents/downloadAsync', // API for file download
65+
url: hostUrl + 'api/PostgresDocumentStorage', // API for file management
66+
downloadUrl: hostUrl + 'api/PostgresDocumentStorage/downloadAsync', // API for file download
6767
}}
6868
toolbarSettings={{
6969
items: ['SortBy', 'Copy', 'Paste', 'Delete', 'Refresh', 'Download', 'Selection', 'View', 'Details'],

0 commit comments

Comments
 (0)