Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,298 changes: 0 additions & 1,298 deletions RESTAPI.md

This file was deleted.

20 changes: 11 additions & 9 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ import (

// Config holds all configuration for the application
type Config struct {
Server ServerConfig
Database DatabaseConfig
Auth AuthConfig
Payment PaymentConfig
Email EmailConfig
Stripe StripeConfig
PayPal PayPalConfig
MobilePay MobilePayConfig
CORS CORSConfig
Server ServerConfig
Database DatabaseConfig
Auth AuthConfig
Payment PaymentConfig
Email EmailConfig
Stripe StripeConfig
PayPal PayPalConfig
MobilePay MobilePayConfig
CORS CORSConfig
DefaultCurrency string // Default currency for the store
}

// ServerConfig holds server-specific configuration
Expand Down Expand Up @@ -224,6 +225,7 @@ func LoadConfig() (*Config, error) {
AllowedOrigins: []string{"*"},
AllowAllOrigins: true,
},
DefaultCurrency: getEnv("DEFAULT_CURRENCY", "USD"),
}, nil
}

Expand Down
Loading