mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
refactor(projects): rename workspace to project
This commit is contained in:
@@ -5,12 +5,12 @@ import (
|
||||
"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.SetAuthToken(accessToken).
|
||||
SetHeader("Accept", "application/json")
|
||||
|
||||
res, err := api.CallGetProjectById(httpClient, workspaceId)
|
||||
res, err := api.CallGetProjectById(httpClient, projectId)
|
||||
if err != nil {
|
||||
return api.Project{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user