added some map stuff

added a few backend routes
This commit is contained in:
Torben Indorf
2020-02-09 16:00:12 +01:00
parent e2568a1bbe
commit 3770a4111a
20 changed files with 718 additions and 99 deletions
+19
View File
@@ -0,0 +1,19 @@
import User from '@/models/User';
export class Area {
public id?: string;
public name?: string;
public active: boolean = false;
public users: User[] = [];
constructor(data: any) {
Object.assign(this, data);
if (data.users) {
data.users.map((userData: any) => {
this.users.push(new User(userData));
});
}
}
}