Initial space mounting support

This commit is contained in:
Zef Hemel
2022-07-06 12:18:33 +02:00
parent f1a7cc1fb7
commit 05edbfe305
5 changed files with 233 additions and 5 deletions
+7 -3
View File
@@ -75,9 +75,13 @@ export class PageNamespaceHook implements Hook<PageNamespaceHookT> {
errors.push(`Function ${funcName} has a namespace but no operation`);
}
if (
!["readPage", "writePage", "getPageMeta", "listPages"].includes(
funcDef.pageNamespace.operation
)
![
"readPage",
"writePage",
"getPageMeta",
"listPages",
"deletePage",
].includes(funcDef.pageNamespace.operation)
) {
errors.push(
`Function ${funcName} has an invalid operation ${funcDef.pageNamespace.operation}`