mirror of
https://github.com/httpjamesm/AnonymousOverflow.git
synced 2025-06-19 07:30:58 +00:00
Add version endpoint (#146)
This commit is contained in:
parent
4c971f3121
commit
1a7635ccef
2 changed files with 12 additions and 0 deletions
2
main.go
2
main.go
|
@ -86,6 +86,8 @@ func main() {
|
|||
|
||||
r.GET("/proxy", routes.GetImage)
|
||||
|
||||
r.GET("/version", routes.GetVersion)
|
||||
|
||||
soPingCheck := checks.NewPingCheck("https://stackoverflow.com", "GET", 5000, nil, nil)
|
||||
sePingCheck := checks.NewPingCheck("https://stackexchange.com", "GET", 5000, nil, nil)
|
||||
healthcheck.New(r, config.DefaultConfig(), []checks.Check{soPingCheck, sePingCheck})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue