Add secret key
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
// Package main an example on how to naming your routes & use the custom 'url path' Jet Template Engine.
|
||||
package main
|
||||
|
||||
import (
|
||||
"iris-test/app/cfg"
|
||||
"iris-test/app/db"
|
||||
"iris-test/app/logging"
|
||||
|
||||
"github.com/kataras/iris/v12"
|
||||
)
|
||||
|
||||
@ -35,6 +38,10 @@ var users = []User{
|
||||
}
|
||||
|
||||
func main() {
|
||||
cfg.Init()
|
||||
logging.Init()
|
||||
db.InitDB()
|
||||
|
||||
app := iris.New()
|
||||
app.RegisterView(iris.Jet("./app/templates", ".jet").Reload(true))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user