This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
export default { | |
async fetch() { | |
const response = await fetch('https://beyond-apis.glitch.me/launch/api/v2/all').then((res) => | |
res.json() | |
) | |
const data = response[0].results.find((obj) => obj.slug === this.$route.params.slug) | |
// If data is null or undefined, return 404 | |
if (data == null) { |