Remove Mirage; add json-server with first email included

This commit is contained in:
Jeffrey Biles
2020-03-28 21:00:57 -07:00
parent 3bbc469da6
commit 18d6bfa297
6 changed files with 15 additions and 214 deletions

View File

@@ -11,9 +11,8 @@
export default {
async setup(){
let response = await fetch('/api/emails');
let {emails} = await response.json();
let response = await fetch('http://localhost:3000/emails');
let emails = await response.json();
emails = ref(emails);
return {emails};

View File

@@ -1,5 +1,4 @@
import { createApp } from 'vue';
import App from './App.vue';
import '../mirage/index';
createApp(App).mount('#app');