Skip to content

Commit

Permalink
add: 允许自定义http目录
Browse files Browse the repository at this point in the history
  • Loading branch information
cyz-home committed May 17, 2023
1 parent 5983bf4 commit 89a40b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion console/commands/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (RouteCommand) Execute(input command.Input) {

if group != "" {
g := agl[group]
imports := module + "/app/http/" + fileParser.PackageName + "/" + parser.StringToSnake(service.Name)
imports := strings.Replace(outHttp, getRootPath(), module, 1) + "/" + fileParser.PackageName + "/" + parser.StringToSnake(service.Name)
g.imports[imports] = imports

g.controllers = append(g.controllers, Controller{
Expand Down

0 comments on commit 89a40b3

Please sign in to comment.