From 8b2ee1c949f009ac8102acc1910e2ceb1866a22f Mon Sep 17 00:00:00 2001 From: garrettmills Date: Tue, 5 Apr 2022 12:35:41 -0500 Subject: [PATCH] Add debugging for route extraction --- package.json | 2 +- src/http/routing/Route.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8d1ff62..1a7f586 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@extollo/lib", - "version": "0.9.29", + "version": "0.9.30", "description": "The framework library that lifts up your code.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/http/routing/Route.ts b/src/http/routing/Route.ts index b69dac7..c1b82bb 100644 --- a/src/http/routing/Route.ts +++ b/src/http/routing/Route.ts @@ -8,6 +8,7 @@ import {validateMiddleware} from '../../validation/middleware' import {RouteGroup} from './RouteGroup' import {Config} from '../../service/Config' import {Application} from '../../lifecycle/Application' +import {Logging} from '../../service/Logging' /** * Type alias for an item that is a valid response object, or lack thereof. @@ -277,6 +278,9 @@ export class Route(Logging) + .verbose(`Extracting route - (potential: ${potential}, rP: ${JSON.stringify(routeParts)}, pP: ${JSON.stringify(potentialParts)})`) + const params: any = {} let wildcardIdx = 0