@@ -3,6 +3,7 @@ import type { RouteMetadata, ServerOptions } from "@/types";
33import { defaultOptions } from "@/utils/constants" ;
44import { controllerMetadata , routeMetadata } from "@/utils/meta-data" ;
55import { Container } from "@/di/Container" ;
6+ import { Logger } from "@/utils/logger" ;
67
78export class Application {
89 private readonly app : Hono ;
@@ -26,6 +27,7 @@ export class Application {
2627 const routes = routeMetadata . get ( Controller ) ?? [ ] ;
2728 const instance = Container . resolve ( Controller ) ;
2829
30+ Logger . success ( `${ Controller . name } : ${ controllerPath } ` ) ;
2931 const controllerGroup = new Hono ( ) ;
3032
3133 for ( const route of routes ) {
@@ -36,7 +38,7 @@ export class Application {
3638
3739 this . app . route ( this . options . basePath ?? '' , baseGroup ) ;
3840 }
39- private getControllerPath ( Controller : any ) : string {
41+ private getControllerPath ( Controller : Function ) : string {
4042 const path = controllerMetadata . get ( Controller ) ?? "" ;
4143 return path . replace ( / \/ $ / , "" ) ; // Normalize trailing slash
4244 }
@@ -49,6 +51,8 @@ export class Application {
4951 const { method, path, handler } = route ;
5052 const normalizedPath = path === "/" ? "" : path ;
5153
54+ Logger . info ( `${ method . toUpperCase ( ) } : "${ normalizedPath } "` ) ;
55+
5256 group . on (
5357 method . toUpperCase ( ) ,
5458 normalizedPath ,
0 commit comments