summaryrefslogtreecommitdiffstats
path: root/src/types
diff options
context:
space:
mode:
authorDevlin Junker <devlin.junker@gmail.com>2023-08-08 16:00:51 -0700
committerBenjamin Brahmer <info@b-brahmer.de>2023-08-11 09:22:24 +0200
commit3f1fb5b1d657cc695955736101cc949572b655a6 (patch)
tree56cd5d4e0e6e1873cdf570e97f1de7923dbe2374 /src/types
parent2287835894a4552c8247c6be85934ff9eb00ed07 (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.ts6
-rw-r--r--src/types/MutationTypes.ts10
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',
+}