owl-blogs/web/utils.go

15 lines
228 B
Go
Raw Normal View History

2023-07-17 18:44:59 +00:00
package web
import (
"owl-blogs/app/repository"
"owl-blogs/domain/model"
)
func getConfig(repo repository.SiteConfigRepository) model.SiteConfig {
config, err := repo.Get()
if err != nil {
panic(err)
}
return config
}