Skip to content

Commit fbebf24

Browse files
committed
refactor: display of route handler
1 parent 880b5b7 commit fbebf24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cli_formatters/routes_list.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ export class RoutesListFormatter {
247247
* Formats controller name for the ansi list and table
248248
*/
249249
#formatControllerName(route: SerializedRoute) {
250-
return route.handler.type === 'controller' ? ` ${route.handler.moduleNameOrPath}.` : ''
250+
return route.handler.type === 'controller'
251+
? ` ${this.#colors.cyan(route.handler.moduleNameOrPath)}.`
252+
: ''
251253
}
252254

253255
/**
@@ -260,7 +262,7 @@ export class RoutesListFormatter {
260262

261263
const functionName = ` ${this.#colors.cyan(route.handler.name)}`
262264
if (route.handler.args) {
263-
return ` ${functionName}(${route.handler.args})`
265+
return ` ${functionName}${this.#colors.dim(`(${route.handler.args})`)}`
264266
}
265267

266268
return functionName

0 commit comments

Comments
 (0)