Refactor tutorial service for public access and enhance authentication handling

This commit is contained in:
liosha84
2025-07-06 19:37:32 +03:00
parent c39571ad70
commit 2ee97f8c86
25 changed files with 217 additions and 325 deletions
@@ -36,14 +36,14 @@ export class TutorialsComponent {
// }
retrieveTutorials(): void {
this.tutorialService.getAll()
.subscribe(
data => {
this.tutorials = data;
console.log(data);
},
error => {
console.log(error);
});
this.tutorialService.getAllPublic().subscribe(
(data : Tutorial[]) =>{
this.tutorials = data;
console.log(data);
},
error => {
console.log(error);
}
);
}
}