refactor(services): Move staticservice to struct and interface
This commit is contained in:
3
main.go
3
main.go
@@ -74,11 +74,14 @@ func main() {
|
||||
}
|
||||
|
||||
barcodeGenerator := &services.DefaultBarcodeService{}
|
||||
staticService := &services.DefaultStaticService{}
|
||||
handler := handlers.DefaultHandler{
|
||||
Config: config,
|
||||
BarcodeService: barcodeGenerator,
|
||||
StaticService: staticService,
|
||||
Templater: &services.DefaultTemplater{
|
||||
BarcodeService: barcodeGenerator,
|
||||
StaticService: staticService,
|
||||
},
|
||||
Converter: &services.GotenbergConverter{
|
||||
BaseUrl: config.GotenbergBaseUrl,
|
||||
|
||||
Reference in New Issue
Block a user