github.com/jghiloni/cli@v6.28.1-0.20170628223758-0ce05fe032a2+incompatible/api/uaa/internal/routes.go (about)

     1  package internal
     2  
     3  import (
     4  	"net/http"
     5  
     6  	"github.com/tedsuo/rata"
     7  )
     8  
     9  const (
    10  	PostUserRequest       = "PostUser"
    11  	PostOAuthTokenRequest = "PostOAuthToken"
    12  )
    13  
    14  // Routes is a list of routes used by the rata library to construct request
    15  // URLs.
    16  var Routes = rata.Routes{
    17  	{Path: "/Users", Method: http.MethodPost, Name: PostUserRequest},
    18  	{Path: "/oauth/token", Method: http.MethodPost, Name: PostOAuthTokenRequest},
    19  }