I'm wondering how I wonder how I can read a local JSON file using Axios?` The data.json file is located in public/info/data.json? Every time I'm trying to pull off the get request, I'm getting a 404 message
Data.json looks like this:
[
{"id": 1239,"name": "Card 1"},
{"id": 1235,"name": "Card 2"},
{"id": 1233,"name": "Card 3"},
{"id": 1233,"name": "Card 4"},
]
Get method looks like this:
created() {
axios.get("../../public/data/data.json")
.then((response) => {
response.data
})