21 lines
593 B
TypeScript
21 lines
593 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { InMemoryDbService } from 'angular-in-memory-web-api';
|
|
import { getMaxListeners } from 'process';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class InMemoryDataService implements InMemoryDbService{
|
|
|
|
createDb(){
|
|
let users = [
|
|
{id: 1, userType: 0, loginUser: 'berywell@gmail.com', loginPassword: '1234'},
|
|
{id: 2, userType: 1, loginUser: 'lostmysocks@gmail.com', loginPassword: 'abcd'},
|
|
{id: 3, userType: 0, loginUser: 'ducktype@gmail.com', loginPassword: 'wasd'}
|
|
]
|
|
return {users};
|
|
}
|
|
|
|
constructor() { }
|
|
}
|