fix(template-service): fix service registration

This commit is contained in:
wpetit 2020-07-16 16:56:46 +02:00
parent 5a5ddf7105
commit c266bfa14b
1 changed files with 1 additions and 2 deletions

View File

@ -65,10 +65,9 @@ func getServiceContainer(conf *config.Config) (*service.Container, error) {
gorilla.ServiceProvider("scaffold-test", cookieStore),
)
// Create and expose template service provider
// Create and expose template service provider
ctn.Provide(template.ServiceName, html.ServiceProvider(
conf.HTTP.TemplateDir,
html.NewDirectoryLoader(conf.HTTP.TemplateDir),
))
// Create and expose config service provider