duck-booking-tool-front/app/in-memory-data.service.ts

35 lines
727 B
TypeScript
Raw Normal View History

import { InMemoryDbService } from "angular-in-memory-web-api";
2016-10-28 03:40:09 +00:00
export class InMemoryDuckService implements InMemoryDbService {
createDb() {
let ducks = [
{
id: 1,
name: "Fastfingers",
color: "#ee6aa7"
},
{
id: 2,
name: "Lady Pickett",
color: "#8b8b00"
}
];
return {ducks};
}
}
2016-10-28 03:40:09 +00:00
export class InMemoryUserService implements InMemoryDbService {
createDb() {
let users = [
{
id: 1,
username: 'epolger',
password: 'epolger'
}
];
return {users};
}
}