From 0a6fda151279b8405d5554a38f3f96b490e8000b Mon Sep 17 00:00:00 2001 From: Toast Date: Tue, 28 Jan 2025 12:03:53 +0100 Subject: [PATCH] Services: create and move shows-api service --- src/pages/shows/shows.component.ts | 4 ++-- src/{ => services}/shows/shows-api.service.spec.ts | 0 src/{ => services}/shows/shows-api.service.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => services}/shows/shows-api.service.spec.ts (100%) rename src/{ => services}/shows/shows-api.service.ts (91%) diff --git a/src/pages/shows/shows.component.ts b/src/pages/shows/shows.component.ts index d210ea2..fdda5de 100644 --- a/src/pages/shows/shows.component.ts +++ b/src/pages/shows/shows.component.ts @@ -1,6 +1,6 @@ import {Component, inject} from '@angular/core'; -import {ShowsApiService} from '../../shows/shows-api.service'; -import {Show, ShowsApiResponse} from '../../shows/shows-api'; +import {ShowsApiService} from '../../services/shows/shows-api.service'; +import {Show, ShowsApiResponse} from '../../shows-api'; @Component({ selector: 'app-shows', diff --git a/src/shows/shows-api.service.spec.ts b/src/services/shows/shows-api.service.spec.ts similarity index 100% rename from src/shows/shows-api.service.spec.ts rename to src/services/shows/shows-api.service.spec.ts diff --git a/src/shows/shows-api.service.ts b/src/services/shows/shows-api.service.ts similarity index 91% rename from src/shows/shows-api.service.ts rename to src/services/shows/shows-api.service.ts index 9cba14c..2884a19 100644 --- a/src/shows/shows-api.service.ts +++ b/src/services/shows/shows-api.service.ts @@ -1,7 +1,7 @@ import {inject, Injectable} from '@angular/core'; import {HttpClient} from '@angular/common/http'; import {Observable} from 'rxjs'; -import {ShowsApiResponse} from './shows-api'; +import {ShowsApiResponse} from '../../shows-api'; @Injectable({ providedIn: 'root'