Skip to content

Commit

Permalink
fix: add default route when generating code
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Mar 29, 2022
1 parent 359a959 commit df694ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/plugins/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ${imports.map(handler => `import ${getImportId(handler)} from '${handler}';`).jo
${lazyImports.map(handler => `const ${getImportId(handler)} = () => import('${handler}');`).join('\n')}
const handlers = [
${handler.map(m => ` { route: '${m.route}', handler: ${getImportId(m.handler)}, lazy: ${m.lazy || true} }`).join(',\n')}
${handler.map(m => ` { route: '${m.route || '/'}', handler: ${getImportId(m.handler)}, lazy: ${m.lazy || true} }`).join(',\n')}
];
export default handlers
Expand Down

0 comments on commit df694ea

Please sign in to comment.