Add ntfy config settings
This commit is contained in:
@@ -73,6 +73,10 @@ func main() {
|
||||
configRepo := config.NewRepository(dbCon)
|
||||
configService := config.NewService(configRepo)
|
||||
|
||||
if err := configService.EnsureDefaults(); err != nil {
|
||||
panic(fmt.Errorf("failed to ensure config defaults: %w", err))
|
||||
}
|
||||
|
||||
fileRepo := file.NewRepository(dbCon)
|
||||
fileService := file.NewService(fileRepo, "./uploads")
|
||||
fileHandler := file.NewHandler(fileService, configService)
|
||||
|
||||
Reference in New Issue
Block a user