setup view fix

pull/12/head
Hunter Long 2018-07-04 19:18:02 -07:00
parent 9fc332e8e4
commit 9d4c1dbdb7
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ type index struct {
}
func IndexHandler(w http.ResponseWriter, r *http.Request) {
if core.CoreApp == nil {
if core.CoreApp.DbConnection == "" {
http.Redirect(w, r, "/setup", http.StatusSeeOther)
return
}