aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/server/register_version.go
blob: ee01ad4b3f5973bb5d4a556b0357e1ca1e8fad74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package server

import (
	"net/http"

	"github.com/containers/libpod/pkg/api/handlers"
	"github.com/gorilla/mux"
)

func (s *APIServer) registerVersionHandlers(r *mux.Router) error {
	r.Handle("/version", s.APIHandler(handlers.VersionHandler)).Methods(http.MethodGet)
	r.Handle(VersionedPath("/version"), s.APIHandler(handlers.VersionHandler)).Methods(http.MethodGet)
	return nil
}