Skip to content

Commit 2473098

Browse files
committed
update middleware create for folder default
1 parent fd976c6 commit 2473098

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

framework/command/middleware.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ var middlewareCreateCommand = &cobra.Command{
162162
return err
163163
}
164164
}
165+
if folder == "" {
166+
folder = name
167+
}
165168

166169
app := container.MustMake(contract.AppKey).(contract.App)
167170

0 commit comments

Comments
 (0)