Skip to content

Commit

Permalink
fix(core): fixes Application.routes
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Nov 24, 2019
1 parent c2536da commit 8d9a203
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/classes/Application/helpers/get-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import {
isElementTree,
isTreeCollection
} from '~/inspect/is';
import { replace } from '~/transform';

export function getRoutes(
collection: CollectionInstance<CollectionTreeImplementation>,
map: ApplicationCreateOptionsMapFn
): ApplicationRoutes {
const routes: any = collection.replace(
const routes: any = replace(
collection,
(element, { path, route }, next): any => {
if (isElementService(element)) {
if (!route) {
Expand Down

0 comments on commit 8d9a203

Please sign in to comment.