Skip to content

Commit

Permalink
feat: allow to get routes from router
Browse files Browse the repository at this point in the history
  • Loading branch information
loopingz committed Nov 29, 2023
1 parent d0225e5 commit dcdbd74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/core/src/router.ts
Expand Up @@ -120,6 +120,14 @@ export class Router {
return `${prefix}${url}`;
}

/**
* Return routes
* @returns
*/
getRoutes() {
return this.routes;
}

/**
* Add a route dynamicaly
*
Expand Down

0 comments on commit dcdbd74

Please sign in to comment.