🏗️ Updated theme module usage in main
This commit is contained in:
parent
0ad5c9694f
commit
bf6efcdf21
6
main.go
6
main.go
|
@ -86,10 +86,12 @@ func init() {
|
|||
|
||||
func main() {
|
||||
ctx := context.Background()
|
||||
matcher := language.NewMatcher(message.DefaultCatalog.Languages())
|
||||
|
||||
contentDir := os.DirFS(config.ContentDir)
|
||||
themeDir := os.DirFS(config.ThemeDir)
|
||||
themes, err := themefsrepo.NewFileSystemThemeRepository(themeDir)
|
||||
if err != nil {
|
||||
logger.Fatalln(err)
|
||||
}
|
||||
|
||||
statics := staticfsrepo.NewFileServerStaticRepository(contentDir)
|
||||
staticer := staticucase.NewStaticUseCase(statics)
|
||||
|
|
Loading…
Reference in New Issue