Skip to content

Commit d169b4c

Browse files
authored
Merge pull request docker#117 from fiam/align_urls
fix: align DMR URLs to consistently include trailing slash
2 parents 9e70161 + 228cfc2 commit d169b4c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/cli/commands/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func newUpCommand() *cobra.Command {
8888
case types.ModelRunnerEngineKindCloud:
8989
fallthrough
9090
case types.ModelRunnerEngineKindMoby:
91-
_ = setenv("URL", fmt.Sprintf("http://%s:%d/engines/v1", standalone.gatewayIP, standalone.gatewayPort))
91+
_ = setenv("URL", fmt.Sprintf("http://%s:%d/engines/v1/", standalone.gatewayIP, standalone.gatewayPort))
9292
default:
9393
return fmt.Errorf("unhandled engine kind: %v", kind)
9494
}

cmd/cli/commands/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func jsonStatus(standalone *standaloneRunner, status desktop.Status, backendStat
8282
case types.ModelRunnerEngineKindCloud:
8383
fallthrough
8484
case types.ModelRunnerEngineKindMoby:
85-
endpoint = fmt.Sprintf("http://%s:%d/engines/v1", standalone.gatewayIP, standalone.gatewayPort)
85+
endpoint = fmt.Sprintf("http://%s:%d/engines/v1/", standalone.gatewayIP, standalone.gatewayPort)
8686
default:
8787
return fmt.Errorf("unhandled engine kind: %v", kind)
8888
}

0 commit comments

Comments
 (0)