mirror of
https://github.com/spaytac/orbiter.git
synced 2026-01-21 23:34:41 +00:00
14 lines
315 B
Go
14 lines
315 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gianarb/orbiter/core"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
func GetRouter(core core.Core) *mux.Router {
|
|
r := mux.NewRouter()
|
|
r.HandleFunc("/handle/{autoscaler_name}/{service_name}", Handle(core.Autoscalers)).Methods("POST")
|
|
r.HandleFunc("/health", Health()).Methods("GET")
|
|
return r
|
|
}
|