initial commit
This commit is contained in:
commit
7715fcf373
37 changed files with 2957 additions and 0 deletions
21
pkg/api/v1/server/routes.go
Normal file
21
pkg/api/v1/server/routes.go
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
"git.giftfish.de/ston1th/haproxy-lb/pkg/api"
|
||||
"git.giftfish.de/ston1th/haproxy-lb/pkg/api/v1/schema"
|
||||
)
|
||||
|
||||
const version = "/" + schema.Version
|
||||
|
||||
var routes = []api.Route{
|
||||
{
|
||||
"/healthz",
|
||||
healthzHandler,
|
||||
[]string{"GET"},
|
||||
},
|
||||
{
|
||||
version + "/alloc",
|
||||
authHandler(allocHandler),
|
||||
[]string{"POST"},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue