func GetPersonEndpoint(w http.ResponseWriter, r *http.Request) {
	params := mux.Vars(r)
	payload := dao.GetAllPeople()
	for _, p := range payload {
		if p.ID == params["id"] {
			json.NewEncoder(w).Encode(p)
			return
		}
	}
	json.NewEncoder(w).Encode("Person not found")
}
GetPersonEndpoint gets a person
package handlers
import (
	"encoding/json"
	"net/http"
	"phonebook-backend/dao"
	"phonebook-backend/models"
	"github.com/gorilla/mux"
)
var people []models.Person