diff --git a/src/Medusa.ts b/src/Medusa.ts index f311f406..383887be 100644 --- a/src/Medusa.ts +++ b/src/Medusa.ts @@ -74,7 +74,7 @@ export class Medusa { await migrationsLoader(moduleComponentsOptions.get('migration') ?? [], dbConnection); - Utils.hydrateRouteLog(this.#express); + Utils.hydrateRouterLog(this.#express); Utils.displayLogs(); return container as unknown as AwilixContainer; } diff --git a/src/utils.ts b/src/utils.ts index 082f6a61..d921d895 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -74,11 +74,11 @@ export class Utils { * Prepare the logs the show all available routes on the app. * @param app */ - static hydrateRouteLog(app: Express): void { + static hydrateRouterLog(app: Express): void { const endPoints = getEndpoints(app); for (const endPoint of endPoints) { endPoint.methods.map((method) => { - this.hydrateLog('MedusaLoader', 'Route Mapped {/%s, %s}', endPoint.path, method); + this.hydrateLog('MedusaLoader', 'Route Mapped {%s, %s}', endPoint.path, method); }); } }