diff options
Diffstat (limited to 'src/services/filesSharingServices.js')
-rw-r--r-- | src/services/filesSharingServices.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/services/filesSharingServices.js b/src/services/filesSharingServices.js index 04e6cf492..213c76c50 100644 --- a/src/services/filesSharingServices.js +++ b/src/services/filesSharingServices.js @@ -55,6 +55,10 @@ const shareFile = async function(path, token, referenceId, metadata) { } } +const getFileTemplates = async () => { + return await axios.get(generateOcsUrl('apps/files/api/v1/templates')) +} + /** * Share a text file to a conversation * @@ -82,5 +86,6 @@ const createTextFile = async function(filePath) { export { shareFile, + getFileTemplates, createTextFile, } |