diff --git a/README.md b/README.md index 1cc655e..880e9bf 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Persistence cloud API to store locations of objects in Unity 3D space. First, create a `.env` file in the root of the directory with the following values: ```bash -ALLOWED_ORIGINS=http://localhost:5173,https://localhost:5173,http://localhost,https://localhost +ALLOWED_ORIGINS=http://localhost:5173,https://localhost:5173,http://localhost:5174,https://localhost:5174,http://localhost,https://localhost POSTGRES_HOST=postgres POSTGRES_USER=tmdbuser diff --git a/pkg/accounts/handlers/GetAccounts.go b/pkg/accounts/handlers/GetAccounts.go index 1a136b4..1a2b6dd 100644 --- a/pkg/accounts/handlers/GetAccounts.go +++ b/pkg/accounts/handlers/GetAccounts.go @@ -27,7 +27,7 @@ func GetAccounts(app *core.App) http.HandlerFunc { return } - var baseAccounts []models.BaseAccount + baseAccounts := []models.BaseAccount{} for _, account := range accounts { baseAccounts = append(baseAccounts, models.BaseAccount{ ID: account.ID,