From 5db618f87a78e3f93830be61a8d2b3a6691ab23f Mon Sep 17 00:00:00 2001 From: tareq89 Date: Tue, 10 Dec 2024 17:26:44 +0600 Subject: [PATCH] modified certificate/{id} --- src/api/certificates/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/certificates/handler.ts b/src/api/certificates/handler.ts index dcb17eba0..8929c55c7 100644 --- a/src/api/certificates/handler.ts +++ b/src/api/certificates/handler.ts @@ -37,7 +37,7 @@ export interface ICertificateConfigData { export async function certificateHandler(request: Request, h: ResponseToolkit) { if (request.params.id) { - const filePath = `${__dirname}/source/${request.params.id}.svg` + const filePath = `${__dirname}/source/${request.params.id}` return h.file(filePath) } const certificateConfigs: ICertificateConfigData[] = [