mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 22:27:22 +00:00
refactor(projects): rename workspace to project
This commit is contained in:
@@ -5,12 +5,12 @@ import (
|
|||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetProjectDetails(accessToken string, workspaceId string) (api.Project, error) {
|
func GetProjectDetails(accessToken string, projectId string) (api.Project, error) {
|
||||||
httpClient := resty.New()
|
httpClient := resty.New()
|
||||||
httpClient.SetAuthToken(accessToken).
|
httpClient.SetAuthToken(accessToken).
|
||||||
SetHeader("Accept", "application/json")
|
SetHeader("Accept", "application/json")
|
||||||
|
|
||||||
res, err := api.CallGetProjectById(httpClient, workspaceId)
|
res, err := api.CallGetProjectById(httpClient, projectId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return api.Project{}, err
|
return api.Project{}, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user