Skip to content

Commit e4f471c

Browse files
committed
fix(router): remove hardcoded path prefix from routes directory 🦁
- Remove './' prefix from routesDir assignment - Allow flexible path configuration for routes directory - Support both relative and absolute path options
1 parent c210179 commit e4f471c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Router.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class Router {
4040
if (!allowedExtensions.includes(options.extension)) {
4141
throw new Error(`Invalid extension: ${options.extension}`)
4242
}
43-
this.routesDir = `./${options.prefix}`
43+
this.routesDir = options.prefix
4444
this.routesExt = options.extension
4545
}
4646
}

0 commit comments

Comments
 (0)