@@ -1267,6 +1267,7 @@ router.post(
|
||||
publish,
|
||||
collectionId,
|
||||
parentDocumentId,
|
||||
fullWidth,
|
||||
templateId,
|
||||
template,
|
||||
} = ctx.input.body;
|
||||
@@ -1320,6 +1321,7 @@ router.post(
|
||||
parentDocumentId,
|
||||
templateDocument,
|
||||
template,
|
||||
fullWidth,
|
||||
user,
|
||||
editorVersion,
|
||||
ip: ctx.request.ip,
|
||||
|
||||
@@ -289,6 +289,9 @@ export const DocumentsCreateSchema = BaseSchema.extend({
|
||||
/** Create doc with this template */
|
||||
templateId: z.string().uuid().optional(),
|
||||
|
||||
/** Boolean to denote if the doc should occupy full width */
|
||||
fullWidth: z.boolean().optional(),
|
||||
|
||||
/** Whether to create a template doc */
|
||||
template: z.boolean().optional(),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user