57. でいいらしい
async fetch({ store, route, app, error }) {
let url = `/api/${route.params.id}`
let data = await app.$axios.$get(url)
if (data.items.length === 0) {
// there's no data this should be a 404
// No! there is no Content so throw `204 No Content` response:
// https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Succes
error({statusCode: 204, message: "The server successfully processed t
}
store.commit('item', data.Items[0])
}