🏗️ Updated theme module usage in main

This commit is contained in:
Maxim Lebedev 2023-11-09 05:05:22 +06:00
parent 0ad5c9694f
commit bf6efcdf21
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 4 additions and 2 deletions

View File

@ -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)