Skip to content

Commit 1d891e3

Browse files
committed
[houskeeping] specific routing
1 parent 95a2790 commit 1d891e3

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
- uses: actions/setup-go@v2
1414
with:
15-
go-version: '^1.18'
15+
go-version: '^1.22'
1616

1717
- name: Set up Docker Buildx
1818
uses: docker/setup-buildx-action@v1

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
This is a simple external resource enabling Bob to read git repositories.
44

55
#### Requirements
6-
- [Go](https://golang.org/dl/) 1.18+
6+
- [Go](https://golang.org/dl/) 1.22+
77

88
#### Running
99
- `go build main.go` to compile the code and obtain a binary `main`.

go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/bob-cd/resource-git
22

3-
go 1.21
4-
5-
toolchain go1.21.9
3+
go 1.22
64

75
require github.com/go-git/go-git/v5 v5.12.0
86

main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ func main() {
131131

132132
client.InstallProtocol("https", githttp.NewClient(customClient))
133133

134-
http.HandleFunc("/ping", ping)
135-
http.HandleFunc("/bob_resource", clone)
134+
http.HandleFunc("GET /ping", ping)
135+
http.HandleFunc("GET /bob_resource", clone)
136136

137137
http.ListenAndServe(":"+port, nil)
138138
}

0 commit comments

Comments
 (0)