summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_auth.go
blob: 1bf23d2eb1eb95e54eb256a4b2c5bc8baa6592f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package server

import (
	"github.com/containers/libpod/v2/pkg/api/handlers/compat"
	"github.com/gorilla/mux"
)

func (s *APIServer) registerAuthHandlers(r *mux.Router) error {
	r.Handle(VersionedPath("/auth"), s.APIHandler(compat.UnsupportedHandler))
	// Added non version path to URI to support docker non versioned paths
	r.Handle("/auth", s.APIHandler(compat.UnsupportedHandler))
	return nil
}