From fab9bad04e8b22fc2e78cf535cac353bf089eeea Mon Sep 17 00:00:00 2001 From: hichri-louay Date: Mon, 9 Oct 2023 15:28:38 +0100 Subject: [PATCH] wip - remove req and res types in server --- server.ts | 2 +- .../draft-campaign-parametres.component.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server.ts b/server.ts index 5806d5415..7dec8b96f 100755 --- a/server.ts +++ b/server.ts @@ -68,7 +68,7 @@ export function app(): express.Express { server.get('/campaign/**/edit', getStaticFiles); // All regular routes use the Universal engine - server.get('/campaign/**', (req: { baseUrl: any; }, res: { render: (arg0: string, arg1: { req: any; providers: { provide: InjectionToken; useValue: any; }[]; }) => void; }) => { + server.get('/campaign/**', (req,res) => { res.render('index', { req, providers: [{ provide: APP_BASE_HREF, useValue: req.baseUrl }] diff --git a/src/app/campaigns/components/draft-campaign-parametres/draft-campaign-parametres.component.html b/src/app/campaigns/components/draft-campaign-parametres/draft-campaign-parametres.component.html index 96ab74c4f..6d4c12f13 100755 --- a/src/app/campaigns/components/draft-campaign-parametres/draft-campaign-parametres.component.html +++ b/src/app/campaigns/components/draft-campaign-parametres/draft-campaign-parametres.component.html @@ -6,7 +6,7 @@