github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/api/uaa/internal/routes.go (about)

     1  package internal
     2  
     3  import (
     4  	"net/http"
     5  )
     6  
     7  const (
     8  	GetSSHPasscodeRequest = "GetSSHPasscode"
     9  	PostOAuthTokenRequest = "PostOAuthToken"
    10  	PostUserRequest       = "PostUser"
    11  )
    12  
    13  const (
    14  	AuthorizationResource = "authorization_endpoint"
    15  	UAAResource           = "uaa"
    16  )
    17  
    18  // APIRoutes is a list of routes used by the router to construct request URLs.
    19  var APIRoutes = []Route{
    20  	{Path: "/Users", Method: http.MethodPost, Name: PostUserRequest, Resource: UAAResource},
    21  	{Path: "/oauth/authorize", Method: http.MethodGet, Name: GetSSHPasscodeRequest, Resource: UAAResource},
    22  	{Path: "/oauth/token", Method: http.MethodPost, Name: PostOAuthTokenRequest, Resource: AuthorizationResource},
    23  }