sentDate + date-fns format

This commit is contained in:
Jeffrey Biles
2020-03-17 13:32:21 -07:00
parent 98c669b139
commit e2498155c5
4 changed files with 15 additions and 1 deletions

View File

@@ -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');
}
})