feat(web): introduce templates
This commit is contained in:
@@ -11,6 +11,7 @@ export default async (request, response) => {
|
||||
|
||||
const configParams = (request) => {
|
||||
const {
|
||||
enableTemplates,
|
||||
enableFooter,
|
||||
footerBackgroundColor,
|
||||
footerCopyrightText,
|
||||
@@ -28,6 +29,7 @@ const configParams = (request) => {
|
||||
} = request.body;
|
||||
|
||||
return {
|
||||
enableTemplates,
|
||||
enableFooter,
|
||||
footerBackgroundColor,
|
||||
footerCopyrightText,
|
||||
|
||||
@@ -35,6 +35,7 @@ describe('PATCH /api/v1/admin/templates/:templateId', () => {
|
||||
|
||||
const expectedPayload = await updateTemplateMock({
|
||||
...refetchedTemplate,
|
||||
flowData: refetchedTemplate.getFlowDataWithIconUrls(),
|
||||
name: updatedName,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user