Skip to content

Commit ba602ee

Browse files
committed
Fix API resource list end-points URLs
1 parent 11dbe09 commit ba602ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/api/json/databases.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (j jsonDatabases) CreateDatabaseUser(db types.Database, dbuser types.NewDat
261261
SetBody(req).
262262
SetResult(&databaseUserInfo{}).
263263
SetError(&jsonError{}).
264-
Post("/api/v2/dbusers/")
264+
Post("/api/v2/dbusers")
265265

266266
if err != nil {
267267
return nil, err

internal/api/json/domains.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func (j jsonDomains) ListDomains() ([]api.DomainInfo, error) {
257257
res, err := j.client.R().
258258
SetResult([]domainInfo{}).
259259
SetError(&jsonError{}).
260-
Get("/api/v2/domains/")
260+
Get("/api/v2/domains")
261261

262262
if err != nil {
263263
return []api.DomainInfo{}, err

0 commit comments

Comments
 (0)