This commit is contained in:
Eden Kirin
2023-10-26 13:25:10 +02:00
parent 45f6f19441
commit e92a56c393
8 changed files with 45 additions and 14 deletions

View File

@ -87,7 +87,7 @@ func createApp() *iris.Application {
app.Logger().SetLevel(common.Config.Application.LogLevel)
app.Use(sessionsEngine.Handler())
app.UseRouter(accessLog.Handler)
app.RegisterView(iris.Jet("./app/templates", ".jet").Reload(true))
app.RegisterView(iris.Django("./app/templates", ".html").Reload(true))
views.CreateRouter(app)
return app
}