diff --git a/admin.go b/admin.go index c082fdf..61c8307 100644 --- a/admin.go +++ b/admin.go @@ -25,6 +25,7 @@ func CreateUserHandler(w http.ResponseWriter, r *http.Request) { http.Error(w, "Invalid request body", http.StatusBadRequest) return } + fmt.Println("creating user" + user.Username) db.Create(&user) json.NewEncoder(w).Encode(user) } @@ -105,7 +106,7 @@ func RestoreDatabaseHandler(w http.ResponseWriter, r *http.Request) { http.Error(w, "Failed to switch to new database", http.StatusInternalServerError) return } - + fmt.Println("Database restored successfully") w.WriteHeader(http.StatusOK) json.NewEncoder(w).Encode(map[string]string{"message": "Database restored successfully"}) } diff --git a/test.db b/test.db deleted file mode 100644 index b44d2ad..0000000 Binary files a/test.db and /dev/null differ