diff options
author | Devlin Junker <devlin.junker@gmail.com> | 2023-08-08 16:00:51 -0700 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2023-08-11 09:22:24 +0200 |
commit | 3f1fb5b1d657cc695955736101cc949572b655a6 (patch) | |
tree | 56cd5d4e0e6e1873cdf570e97f1de7923dbe2374 /src/types | |
parent | 2287835894a4552c8247c6be85934ff9eb00ed07 (diff) |
fix add + create folder
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/ApiRoutes.ts | 6 | ||||
-rw-r--r-- | src/types/MutationTypes.ts | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/types/ApiRoutes.ts b/src/types/ApiRoutes.ts new file mode 100644 index 000000000..a82c66dc1 --- /dev/null +++ b/src/types/ApiRoutes.ts @@ -0,0 +1,6 @@ +import { generateUrl } from '@nextcloud/router' + +export const API_ROUTES = { + FOLDER: generateUrl('/apps/news/folders'), + FEED: generateUrl('/apps/news/feeds') +}
\ No newline at end of file diff --git a/src/types/MutationTypes.ts b/src/types/MutationTypes.ts new file mode 100644 index 000000000..d561d1d77 --- /dev/null +++ b/src/types/MutationTypes.ts @@ -0,0 +1,10 @@ + +export const FEED_MUTATION_TYPES = { + ADD_FEED: 'ADD_FEED', + SET_FEEDS: 'SET_FEEDS', +} + +export const FOLDER_MUTATION_TYPES = { + SET_FOLDERS: 'SET_FOLDERS', + DELETE_FOLDER: 'DELETE_FOLDER', +} |