haproxy-lb/pkg/api/v1/server/routes.go
2020-11-22 12:59:12 +01:00

21 lines
332 B
Go

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"},
},
}