Refactoring for Gin, NoSurf and SCS continues.

This commit is contained in:
2025-10-24 13:08:53 +01:00
parent 7276903733
commit fb07c4a5eb
61 changed files with 546 additions and 524 deletions

View File

@@ -3,20 +3,20 @@ package config
import (
"sync"
"synlotto-website/internal/models"
"synlotto-website/internal/platform/config"
)
var (
appConfig *models.Config
appConfig *config.Config
once sync.Once
)
func Init(config *models.Config) {
func Init(config *config.Config) {
once.Do(func() {
appConfig = config
})
}
func Get() *models.Config {
func Get() *config.Config {
return appConfig
}