refactor(config): move Config struct from business layer to platform/config

Moved the Config struct (previously in internal/models/config.go) into internal/platform/config/types.go to align with clean architecture principles.

This change decouples runtime/infrastructure configuration from domain models:
- Configuration is an application/platform concern, not part of the business domain.
- Prevents potential circular imports between models and platform packages.
- Simplifies future integration with platform components (SCS sessions, CSRF, DB).

No functional changes to configuration loading structure and JSON schema remain the same; only the package location and imports were updated.
This commit is contained in:
2025-10-24 08:35:39 +01:00
parent 0f60be448d
commit 7276903733

View File

@@ -1,4 +1,4 @@
package models
package config
type Config struct {
CSRF struct {