import axios from "axios"; const token = localStorage.getItem("token"); await axios.delete(`http://localhost:8000/api/comments/${id}`, { headers: { Authorization: `Bearer ${token}`, }, });