created a basic home page #97
This commit is contained in:
@@ -46,6 +46,7 @@ type Handle struct {
|
||||
gets []HandleFunc
|
||||
posts []HandleFunc
|
||||
deletes []HandleFunc
|
||||
DataMap map[string]interface{}
|
||||
Config Config
|
||||
validate *validator.Validate
|
||||
}
|
||||
@@ -523,7 +524,7 @@ func NewHandler(db db.Db, config Config) *Handle {
|
||||
var posts []HandleFunc
|
||||
var deletes []HandleFunc
|
||||
validate := validator.New()
|
||||
x := &Handle{db, gets, posts, deletes, config, validate}
|
||||
x := &Handle{db, gets, posts, deletes, map[string]interface{}{}, config, validate}
|
||||
|
||||
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user