fix(template-service): fix service registration
This commit is contained in:
parent
5a5ddf7105
commit
c266bfa14b
|
@ -65,10 +65,9 @@ func getServiceContainer(conf *config.Config) (*service.Container, error) {
|
||||||
gorilla.ServiceProvider("scaffold-test", cookieStore),
|
gorilla.ServiceProvider("scaffold-test", cookieStore),
|
||||||
)
|
)
|
||||||
|
|
||||||
// Create and expose template service provider
|
|
||||||
// Create and expose template service provider
|
// Create and expose template service provider
|
||||||
ctn.Provide(template.ServiceName, html.ServiceProvider(
|
ctn.Provide(template.ServiceName, html.ServiceProvider(
|
||||||
conf.HTTP.TemplateDir,
|
html.NewDirectoryLoader(conf.HTTP.TemplateDir),
|
||||||
))
|
))
|
||||||
|
|
||||||
// Create and expose config service provider
|
// Create and expose config service provider
|
||||||
|
|
Loading…
Reference in New Issue