Skip to content

Commit 6621014

Browse files
uzabanovdanail-branekov
authored andcommitted
Accept port when creating route
Closes #4257
1 parent e6065f8 commit 6621014

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

api/payloads/route.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
type RouteCreate struct {
1414
Host string `json:"host"`
1515
Path string `json:"path"`
16+
Port int `json:"port"`
1617
Relationships *RouteRelationships `json:"relationships"`
1718
Metadata Metadata `json:"metadata"`
1819
}

api/payloads/route_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ var _ = Describe("RouteCreate", func() {
9797
createPayload = payloads.RouteCreate{
9898
Host: "h1",
9999
Path: "p1",
100+
Port: 8080,
100101
Relationships: &payloads.RouteRelationships{
101102
Domain: payloads.Relationship{
102103
Data: &payloads.RelationshipData{

0 commit comments

Comments
 (0)