Skip to content

Commit

Permalink
update api
Browse files Browse the repository at this point in the history
  • Loading branch information
VictoriqueMoe committed Aug 20, 2024
1 parent fa5f691 commit 57cbcef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/waifu_vault_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (re *api) ModifyFile(ctx context.Context, token string, options mod.ModifyE
}

func (re *api) CreateBucket(ctx context.Context) (*mod.WaifuBucket, error) {
restUrl := baseUrl + "/rest/bucket/createBucket"
restUrl := baseUrl + "/rest/bucket/create"
r, err := re.createRequest(ctx, http.MethodGet, restUrl, nil, nil)
if err != nil {
return nil, err
Expand All @@ -240,7 +240,7 @@ func (re *api) CreateBucket(ctx context.Context) (*mod.WaifuBucket, error) {
}

func (re *api) GetBucket(ctx context.Context, token string) (*mod.WaifuBucket, error) {
restUrl := baseUrl + "/rest/bucket"
restUrl := baseUrl + "/rest/bucket/get"
type payload struct {
BucketToken string `json:"bucket_token"`
}
Expand Down

0 comments on commit 57cbcef

Please sign in to comment.