Skip to content

Commit

Permalink
fix: make routeArgsInfo Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
yviscool committed Jun 26, 2019
1 parent c2ec7ba commit 4ed5443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/midway-web/src/loader/webLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class MidwayWebLoader extends EggLoader {
* wrap controller string to middleware function
* @param controllerMapping like xxxController.index
*/
public generateController(controllerMapping: string, routeArgsInfo: RouterParamValue[]) {
public generateController(controllerMapping: string, routeArgsInfo?: RouterParamValue[]) {
const [controllerId, methodName] = controllerMapping.split('.');
return async (ctx, next) => {
const args = [ctx, next];
Expand Down

0 comments on commit 4ed5443

Please sign in to comment.