users works!
diff --git a/src/frontend/src/app/modules/admin/components/users/users.component.scss b/src/frontend/src/app/modules/admin/components/users/users.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/frontend/src/app/modules/admin/components/users/users.component.ts b/src/frontend/src/app/modules/admin/components/users/users.component.ts new file mode 100644 index 0000000..126cf2b --- /dev/null +++ b/src/frontend/src/app/modules/admin/components/users/users.component.ts @@ -0,0 +1,18 @@ +import { Component, OnInit } from '@angular/core'; +import { AdminUserService } from '../../services/admin-user/admin-user.service'; + +@Component({ + selector: 'app-users', + templateUrl: './users.component.html', + styleUrls: ['./users.component.scss'] +}) +export class UsersComponent implements OnInit { + + constructor(private adminUserService: AdminUserService) { } + + ngOnInit(): void { + this.adminUserService.getUsers().subscribe(() => { + + }); + } +} diff --git a/src/frontend/src/app/modules/admin/services/admin-user/admin-user.service.ts b/src/frontend/src/app/modules/admin/services/admin-user/admin-user.service.ts new file mode 100644 index 0000000..273faa2 --- /dev/null +++ b/src/frontend/src/app/modules/admin/services/admin-user/admin-user.service.ts @@ -0,0 +1,14 @@ +import { HttpClient } from '@angular/common/http'; +import { Injectable } from '@angular/core'; +import { Observable } from 'rxjs'; +import { UserModel } from 'src/app/modules/auth/models/user.model'; + +@Injectable() +export class AdminUserService { + + constructor(private http: HttpClient) { } + + getUsers(): Observable