mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-23 15:41:33 +00:00
sentDate + date-fns format
This commit is contained in:
@@ -12,6 +12,9 @@ new Server({
|
||||
},
|
||||
body(){
|
||||
return faker.lorem.sentence()
|
||||
},
|
||||
sentDate(){
|
||||
return faker.date.recent(20)
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -21,6 +24,6 @@ new Server({
|
||||
routes() {
|
||||
this.namespace = 'api';
|
||||
|
||||
this.get('/emails', {timing: 2000});
|
||||
this.get('/emails');
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user