feat: pages admin + path parsing fixes
This commit is contained in:
1 parent
4f968cf230
commit
13f172978f
13 files changed
+454
-45
No files matched your search
@@ -42,6 +42,18 @@ module.exports = {
|
||||
'createdAt',
|
||||
'updatedAt'
|
||||
])
|
||||
},
|
||||
async single (obj, args, context, info) {
|
||||
let page = await WIKI.models.pages.getPageFromDb(args.id)
|
||||
if (page) {
|
||||
return {
|
||||
...page,
|
||||
locale: page.localeCode,
|
||||
editor: page.editorKey
|
||||
}
|
||||
} else {
|
||||
throw new WIKI.Error.PageNotFound()
|
||||
}
|
||||
}
|
||||
},
|
||||
PageMutation: {
|
||||
|
||||
Reference in new issue
Block a user