21 lines
332 B
Go
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"},
|
|
},
|
|
}
|