diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-08 15:16:00 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-08 15:33:57 +0300 |
commit | 5b91b1f5b4df2e5603b3facba0b77bf4bcd8612f (patch) | |
tree | d00a9f7fb27c9dde531ed82a8e79e9238aff12f9 /src/service | |
parent | 4b519d5b6dd4d1260f133ee4b977a6bd2829fee1 (diff) |
Make it possible to mark a folder as read
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src/service')
-rw-r--r-- | src/service/FolderService.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/service/FolderService.js b/src/service/FolderService.js index c24c9aceb..095aa1318 100644 --- a/src/service/FolderService.js +++ b/src/service/FolderService.js @@ -30,3 +30,12 @@ export function getFolderStats(accountId, folderId) { return Axios.get(url).then(resp => resp.data) } + +export function markFolderRead(accountId, folderId) { + const url = generateUrl('/apps/mail/api/accounts/{accountId}/folders/{folderId}/read', { + accountId, + folderId, + }) + + return Axios.post(url).then(resp => resp.data) +} |