mirror of https://github.com/statping/statping
setup view fix
parent
9fc332e8e4
commit
9d4c1dbdb7
|
@ -11,7 +11,7 @@ type index struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func IndexHandler(w http.ResponseWriter, r *http.Request) {
|
func IndexHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
if core.CoreApp == nil {
|
if core.CoreApp.DbConnection == "" {
|
||||||
http.Redirect(w, r, "/setup", http.StatusSeeOther)
|
http.Redirect(w, r, "/setup", http.StatusSeeOther)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue