auth with cookies.

This commit is contained in:
illumizoldyck committed 2021-06-15 10:38:54 +02:00
1 parent cf300cb1b7
commit b062e14c9a
6 files changed
+42 -14

No files matched your search

@@ -1,4 +1,6 @@
import { Component, OnInit } from '@angular/core';
import {ApiService} from "../../services/api.service";
@Component({
selector: 'app-top-bar',
@@ -9,9 +11,12 @@ export class TopBarComponent implements OnInit {
sidenav: any;
constructor() { }
constructor(
private api: ApiService
) { }
ngOnInit() {
}
this.api.getUserInfo().subscribe(data=>{console.log(data)});
}
}