Add debugging for route extraction
This commit is contained in:
@@ -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<TReturn extends ResponseObject, THandlerParams extends unknow
|
||||
const routeParts = (this.route.startsWith('/') ? this.route.substr(1) : this.route).split('/')
|
||||
const potentialParts = (potential.startsWith('/') ? potential.substr(1) : potential).split('/')
|
||||
|
||||
Application.getApplication().make<Logging>(Logging)
|
||||
.verbose(`Extracting route - (potential: ${potential}, rP: ${JSON.stringify(routeParts)}, pP: ${JSON.stringify(potentialParts)})`)
|
||||
|
||||
const params: any = {}
|
||||
let wildcardIdx = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user