Skip to content

Commit 18f9a55

Browse files
authored
Merge pull request #57 from frain-dev/smart-endpoint
added content type to endpoint.go
2 parents a87ede7 + 91b150f commit 18f9a55

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Set up Go
17-
uses: actions/setup-go@v2
17+
uses: actions/setup-go@v5
1818
with:
1919
go-version: ${{ matrix.go-version }}
2020

2121
- name: Cache go modules
22-
uses: actions/cache@v1
22+
uses: actions/cache@v4
2323
with:
2424
path: ~/go/pkg/mod
2525
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
2626
restore-keys: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
2727

2828
- name: Check out code
29-
uses: actions/checkout@v2
29+
uses: actions/checkout@v4
3030

3131
- name: Get and verify dependencies
3232
run: go mod download && go mod verify

.github/workflows/linter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
name: lint
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- name: golangci-lint
12-
uses: golangci/golangci-lint-action@v2
12+
uses: golangci/golangci-lint-action@v6
1313
with:
1414
version: latest
1515
only-new-issues: true

endpoint.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ type CreateEndpointRequest struct {
2626
Description string `json:"description,omitempty"`
2727
AdvancedSignatures *bool `json:"advanced_signatures"`
2828
IsDisabled bool `json:"is_disabled"`
29+
ContentType string `json:"content_type,omitempty"`
2930

3031
Authentication *EndpointAuth `json:"authentication"`
3132

@@ -48,6 +49,7 @@ type EndpointResponse struct {
4849
SlackWebhookUrl string `json:"slack_webhook_url"`
4950
SupportEmail string `json:"support_email"`
5051
IsDisabled bool `json:"is_disabled"`
52+
ContentType string `json:"content_type"`
5153

5254
HttpTimeout string `json:"http_timeout"`
5355
RateLimit int `json:"rate_limit"`

0 commit comments

Comments
 (0)