Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit dfb44d0

Browse files
committed
fix: upgrade ftl for new ingress port
1 parent 78ff888 commit dfb44d0

File tree

26 files changed

+50
-46
lines changed

26 files changed

+50
-46
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ Flutter is better run via an [IDE](https://docs.flutter.dev/get-started/editor?t
5757
Add a new item to your cart using the command-line:
5858

5959
```bash
60-
curl -i --json '{"userId": "Larry", "item": {"productId": "OLJCESPC7Z", "quantity": 1}}' localhost:8892/ingress/cart/add
60+
curl -i --json '{"userId": "Larry", "item": {"productId": "OLJCESPC7Z", "quantity": 1}}' localhost:8891/cart/add
6161
```
62+
6263
Response
64+
6365
```
6466
HTTP/1.1 200 OK
6567
Content-Type: application/json; charset=utf-8
@@ -90,9 +92,11 @@ curl --json '{
9092
"expirationMonth": 6
9193
}
9294
}
93-
' localhost:8892/ingress/checkout/Larry | jq .
95+
' localhost:8891/checkout/Larry | jq .
9496
```
97+
9598
Response
99+
96100
```
97101
{
98102
"id": "19031e2c-a4b3-49fe-bbb8-464bc8707559",
File renamed without changes.

bin/ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.ftl-0.231.1.pkg
1+
.ftl-0.234.0.pkg

go/http/http.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ type ErrorResponse struct {
2727
Error string `json:"error"`
2828
}
2929

30-
// Example: curl -i http://localhost:8892/ingress/http/users/123/posts?postId=456
31-
// Error Example: curl -i http://localhost:8892/ingress/http/users/000/posts?postId=456
30+
// Example: curl -i http://localhost:8891/http/users/123/posts?postId=456
31+
// Error Example: curl -i http://localhost:8891/http/users/000/posts?postId=456
3232
//
3333
//ftl:ingress http GET /http/users/{userId}/posts
3434
func Get(ctx context.Context, req builtin.HttpRequest[GetRequest]) (builtin.HttpResponse[GetResponse, ErrorResponse], error) {
@@ -58,7 +58,7 @@ type PostResponse struct {
5858
Success bool `json:"success"`
5959
}
6060

61-
// Example: curl -i --json '{"user_id": 123, "post_id": 345}' http://localhost:8892/ingress/http/users
61+
// Example: curl -i --json '{"user_id": 123, "post_id": 345}' http://localhost:8891/http/users
6262
//
6363
//ftl:ingress http POST /http/users
6464
func Post(ctx context.Context, req builtin.HttpRequest[PostRequest]) (builtin.HttpResponse[PostResponse, ftl.Unit], error) {
@@ -76,7 +76,7 @@ type PutRequest struct {
7676

7777
type PutResponse struct{}
7878

79-
// Example: curl -X PUT http://localhost:8892/ingress/http/users/123 -d '{"postId": "123"}'
79+
// Example: curl -X PUT http://localhost:8891/http/users/123 -d '{"postId": "123"}'
8080
//
8181
//ftl:ingress http PUT /http/users/{userId}
8282
func Put(ctx context.Context, req builtin.HttpRequest[PutRequest]) (builtin.HttpResponse[PutResponse, ftl.Unit], error) {
@@ -92,7 +92,7 @@ type DeleteRequest struct {
9292

9393
type DeleteResponse struct{}
9494

95-
// Example: curl -X DELETE http://localhost:8892/ingress/http/users/123
95+
// Example: curl -X DELETE http://localhost:8891/http/users/123
9696
//
9797
//ftl:ingress http DELETE /http/users/{userId}
9898
func Delete(ctx context.Context, req builtin.HttpRequest[DeleteRequest]) (builtin.HttpResponse[DeleteResponse, ftl.Unit], error) {

kotlin/http/src/main/kotlin/ftl/http/Http.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ data class DeleteRequest(
4141
@Json("userId") val userID: String,
4242
)
4343

44-
// Example: curl -i http://localhost:8892/ingress/http/users/123/posts?postId=456
45-
// Error Example: curl -i http://localhost:8892/ingress/http/users/000/posts?postId=456
44+
// Example: curl -i http://localhost:8891/http/users/123/posts?postId=456
45+
// Error Example: curl -i http://localhost:8891/http/users/000/posts?postId=456
4646
@HttpIngress(Method.GET, "/http/users/{userId}/posts")
4747
fun `get`(context: Context, req: HttpRequest<GetRequest>): HttpResponse<GetResponse, String> {
4848
return HttpResponse(
@@ -55,7 +55,7 @@ fun `get`(context: Context, req: HttpRequest<GetRequest>): HttpResponse<GetRespo
5555
)
5656
}
5757

58-
// Example: curl -i --json '{"user_id": 123, "post_id": 345}' http://localhost:8892/ingress/http/users
58+
// Example: curl -i --json '{"user_id": 123, "post_id": 345}' http://localhost:8891/http/users
5959
@HttpIngress(Method.POST, "/http/users")
6060
fun post(context: Context, req: HttpRequest<PostRequest>): HttpResponse<PostResponse, String> {
6161
return HttpResponse(
@@ -65,7 +65,7 @@ fun post(context: Context, req: HttpRequest<PostRequest>): HttpResponse<PostResp
6565
)
6666
}
6767

68-
// Example: curl -X PUT http://localhost:8892/ingress/http/users/123 -d '{"postId": "123"}'
68+
// Example: curl -X PUT http://localhost:8891/http/users/123 -d '{"postId": "123"}'
6969
@HttpIngress(Method.PUT, "/http/users/{userId}")
7070
fun put(context: Context, req: HttpRequest<PutRequest>): HttpResponse<Empty, String> {
7171
return HttpResponse(
@@ -75,7 +75,7 @@ fun put(context: Context, req: HttpRequest<PutRequest>): HttpResponse<Empty, Str
7575
)
7676
}
7777

78-
// Example: curl -X DELETE http://localhost:8892/ingress/http/users/123
78+
// Example: curl -X DELETE http://localhost:8891/http/users/123
7979
@HttpIngress(Method.DELETE, "/http/users/{userId}")
8080
fun delete(context: Context, req: HttpRequest<DeleteRequest>): HttpResponse<Empty, String> {
8181
return HttpResponse(

online-boutique/backend/services/ad/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.2
55
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..
66

77
require (
8-
github.com/TBD54566975/ftl v0.231.1
8+
github.com/TBD54566975/ftl v0.234.0
99
github.com/TBD54566975/ftl/examples/online-boutique v0.0.0-00010101000000-000000000000
1010
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
1111
)

online-boutique/backend/services/ad/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
44
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
55
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
66
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
7-
github.com/TBD54566975/ftl v0.231.1 h1:qudqDPuTxGGveJu2KkYiwjFvIqCwUgXMDWhCS0RdVT8=
8-
github.com/TBD54566975/ftl v0.231.1/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
7+
github.com/TBD54566975/ftl v0.234.0 h1:Mq8N1NpnW/Y0r+8lgVYtI4Otqu86/WxpXToAIZHl4+c=
8+
github.com/TBD54566975/ftl v0.234.0/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
99
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
1010
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
1111
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=

online-boutique/backend/services/cart/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.2
55
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..
66

77
require (
8-
github.com/TBD54566975/ftl v0.231.1
8+
github.com/TBD54566975/ftl v0.234.0
99
github.com/hashicorp/golang-lru/v2 v2.0.7
1010
)
1111

online-boutique/backend/services/cart/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
44
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
55
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
66
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
7-
github.com/TBD54566975/ftl v0.231.1 h1:qudqDPuTxGGveJu2KkYiwjFvIqCwUgXMDWhCS0RdVT8=
8-
github.com/TBD54566975/ftl v0.231.1/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
7+
github.com/TBD54566975/ftl v0.234.0 h1:Mq8N1NpnW/Y0r+8lgVYtI4Otqu86/WxpXToAIZHl4+c=
8+
github.com/TBD54566975/ftl v0.234.0/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
99
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
1010
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
1111
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=

online-boutique/backend/services/checkout/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.2
55
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..
66

77
require (
8-
github.com/TBD54566975/ftl v0.231.1
8+
github.com/TBD54566975/ftl v0.234.0
99
github.com/TBD54566975/ftl/examples/online-boutique v0.0.0-00010101000000-000000000000
1010
github.com/google/uuid v1.6.0
1111
)

online-boutique/backend/services/checkout/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
44
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
55
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
66
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
7-
github.com/TBD54566975/ftl v0.231.1 h1:qudqDPuTxGGveJu2KkYiwjFvIqCwUgXMDWhCS0RdVT8=
8-
github.com/TBD54566975/ftl v0.231.1/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
7+
github.com/TBD54566975/ftl v0.234.0 h1:Mq8N1NpnW/Y0r+8lgVYtI4Otqu86/WxpXToAIZHl4+c=
8+
github.com/TBD54566975/ftl v0.234.0/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
99
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
1010
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
1111
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=

online-boutique/backend/services/currency/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.2
55
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..
66

77
require (
8-
github.com/TBD54566975/ftl v0.231.1
8+
github.com/TBD54566975/ftl v0.234.0
99
github.com/TBD54566975/ftl/examples/online-boutique v0.0.0-00010101000000-000000000000
1010
golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
1111
)

online-boutique/backend/services/currency/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
44
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
55
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
66
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
7-
github.com/TBD54566975/ftl v0.231.1 h1:qudqDPuTxGGveJu2KkYiwjFvIqCwUgXMDWhCS0RdVT8=
8-
github.com/TBD54566975/ftl v0.231.1/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
7+
github.com/TBD54566975/ftl v0.234.0 h1:Mq8N1NpnW/Y0r+8lgVYtI4Otqu86/WxpXToAIZHl4+c=
8+
github.com/TBD54566975/ftl v0.234.0/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
99
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
1010
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
1111
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=

online-boutique/backend/services/payment/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.2
55
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..
66

77
require (
8-
github.com/TBD54566975/ftl v0.231.1
8+
github.com/TBD54566975/ftl v0.234.0
99
github.com/google/uuid v1.6.0
1010
)
1111

online-boutique/backend/services/payment/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
44
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
55
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
66
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
7-
github.com/TBD54566975/ftl v0.231.1 h1:qudqDPuTxGGveJu2KkYiwjFvIqCwUgXMDWhCS0RdVT8=
8-
github.com/TBD54566975/ftl v0.231.1/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
7+
github.com/TBD54566975/ftl v0.234.0 h1:Mq8N1NpnW/Y0r+8lgVYtI4Otqu86/WxpXToAIZHl4+c=
8+
github.com/TBD54566975/ftl v0.234.0/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
99
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
1010
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
1111
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=

online-boutique/backend/services/productcatalog/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.22.2
55
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..
66

77
require (
8-
github.com/TBD54566975/ftl v0.231.1
8+
github.com/TBD54566975/ftl v0.234.0
99
github.com/TBD54566975/ftl/examples/online-boutique v0.0.0-00010101000000-000000000000
1010
)
1111

online-boutique/backend/services/productcatalog/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
44
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
55
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
66
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
7-
github.com/TBD54566975/ftl v0.231.1 h1:qudqDPuTxGGveJu2KkYiwjFvIqCwUgXMDWhCS0RdVT8=
8-
github.com/TBD54566975/ftl v0.231.1/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
7+
github.com/TBD54566975/ftl v0.234.0 h1:Mq8N1NpnW/Y0r+8lgVYtI4Otqu86/WxpXToAIZHl4+c=
8+
github.com/TBD54566975/ftl v0.234.0/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
99
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
1010
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
1111
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=

online-boutique/backend/services/recommendation/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.2
44

55
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..
66

7-
require github.com/TBD54566975/ftl v0.231.1
7+
require github.com/TBD54566975/ftl v0.234.0
88

99
require (
1010
connectrpc.com/connect v1.16.1 // indirect

online-boutique/backend/services/recommendation/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
44
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
55
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
66
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
7-
github.com/TBD54566975/ftl v0.231.1 h1:qudqDPuTxGGveJu2KkYiwjFvIqCwUgXMDWhCS0RdVT8=
8-
github.com/TBD54566975/ftl v0.231.1/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
7+
github.com/TBD54566975/ftl v0.234.0 h1:Mq8N1NpnW/Y0r+8lgVYtI4Otqu86/WxpXToAIZHl4+c=
8+
github.com/TBD54566975/ftl v0.234.0/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
99
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
1010
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
1111
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=

online-boutique/backend/services/shipping/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.2
44

55
replace github.com/TBD54566975/ftl/examples/online-boutique => ../..
66

7-
require github.com/TBD54566975/ftl v0.231.1
7+
require github.com/TBD54566975/ftl v0.234.0
88

99
require (
1010
connectrpc.com/connect v1.16.1 // indirect

online-boutique/backend/services/shipping/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U
44
connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY=
55
connectrpc.com/otelconnect v0.7.0 h1:ZH55ZZtcJOTKWWLy3qmL4Pam4RzRWBJFOqTPyAqCXkY=
66
connectrpc.com/otelconnect v0.7.0/go.mod h1:Bt2ivBymHZHqxvo4HkJ0EwHuUzQN6k2l0oH+mp/8nwc=
7-
github.com/TBD54566975/ftl v0.231.1 h1:qudqDPuTxGGveJu2KkYiwjFvIqCwUgXMDWhCS0RdVT8=
8-
github.com/TBD54566975/ftl v0.231.1/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
7+
github.com/TBD54566975/ftl v0.234.0 h1:Mq8N1NpnW/Y0r+8lgVYtI4Otqu86/WxpXToAIZHl4+c=
8+
github.com/TBD54566975/ftl v0.234.0/go.mod h1:oappWBTwAwuiN/6oVDeHdNLuFnKzq3PB0UZqc1AaXV0=
99
github.com/alecthomas/assert/v2 v2.10.0 h1:jjRCHsj6hBJhkmhznrCzoNpbA3zqy0fYiUcYZP/GkPY=
1010
github.com/alecthomas/assert/v2 v2.10.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k=
1111
github.com/alecthomas/concurrency v0.0.2 h1:Q3kGPtLbleMbH9lHX5OBFvJygfyFw29bXZKBg+IEVuo=

online-boutique/mobile/lib/api/ftl_client.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class FTLHttpClient {
3030
}) {
3131
Uri uri;
3232
if (requestJson == null || requestJson.isEmpty) {
33-
uri = Uri.http("localhost:8892", '/ingress$path');
33+
uri = Uri.http("localhost:8891", path);
3434
} else {
35-
uri = Uri.http("localhost:8892", '/ingress$path', {'@json': requestJson});
35+
uri = Uri.http("localhost:8891", path, {'@json': requestJson});
3636
}
3737
return httpClient.get(uri, headers: headers);
3838
}
@@ -43,7 +43,7 @@ class FTLHttpClient {
4343
Map<String, String>? headers,
4444
}) {
4545
return httpClient.post(
46-
Uri.http(baseUrl, '/ingress$path'),
46+
Uri.http(baseUrl, path),
4747
body: json.encode(request),
4848
headers: headers,
4949
);

online-boutique/mobile/lib/utils/api_providers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:online_boutique/api/ftl_client.dart';
66
import 'package:online_boutique/api/productcatalog.dart';
77

88
final ftlClientProvider = Provider<FTLHttpClient>((ref) {
9-
final host = Platform.isAndroid ? '10.0.2.2' : 'localhost:8892';
9+
final host = Platform.isAndroid ? '10.0.2.2' : 'localhost:8891';
1010

1111
FTLHttpClient.initialize(
1212
baseUrl: host,

online-boutique/mobile/templates/ftl_client.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class FTLHttpClient {
3030
}) {
3131
Uri uri;
3232
if (requestJson == null || requestJson.isEmpty) {
33-
uri = Uri.http("localhost:8892", '/ingress$path');
33+
uri = Uri.http("localhost:8891", path);
3434
} else {
35-
uri = Uri.http("localhost:8892", '/ingress$path', {'@json': requestJson});
35+
uri = Uri.http("localhost:8891", path, {'@json': requestJson});
3636
}
3737
return httpClient.get(uri, headers: headers);
3838
}
@@ -43,7 +43,7 @@ class FTLHttpClient {
4343
Map<String, String>? headers,
4444
}) {
4545
return httpClient.post(
46-
Uri.http(baseUrl, '/ingress$path'),
46+
Uri.http(baseUrl, path),
4747
body: json.encode(request),
4848
headers: headers,
4949
);

online-boutique/web/src/features/products/ProductPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const ProductPage = () => {
88
const [product, setProduct] = useState<Product | undefined>()
99

1010
useEffect(() => {
11-
const productsClient = new ProductcatalogClient('http://localhost:8892/ingress')
11+
const productsClient = new ProductcatalogClient('http://localhost:8891')
1212
productsClient.list({}).then((response) => {
1313
setProduct(response.products.find((product) => product.id.toLowerCase() === productId?.toLowerCase()))
1414
})

online-boutique/web/src/features/products/ProductsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const ProductsPage = () => {
77
const [products, setProducts] = useState<Product[]>([])
88

99
useEffect(() => {
10-
const productsClient = new ProductcatalogClient('http://localhost:8892/ingress')
10+
const productsClient = new ProductcatalogClient('http://localhost:8891')
1111
productsClient.list({}).then((response) => setProducts(response.products || []))
1212
}, [])
1313

0 commit comments

Comments
 (0)