Skip to content

Commit

Permalink
fix: remove endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
BerendWouters committed Jan 30, 2024
1 parent 2742bd8 commit c6a552c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Singer.API/ClientApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Singer.API/ClientApp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Singer",
"version": "0.1.0-issue-msal.1586",
"version": "0.1.0-issue-msal.1588",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { SingerLocation } from '../../models/singer-location.model';
import { SingerLocationProxy } from './singer-location.proxy';
import { GenericService } from '../generic-service';
import { HttpClient } from '@angular/common/http';
import { endpoint } from '../auth-config';

@Injectable({
providedIn: 'root',
Expand All @@ -24,7 +25,7 @@ export class SingerLocationService extends GenericService<
SingerLocationSearchDTO
> {
constructor(private singerLocationProxy: SingerLocationProxy, protected httpClient: HttpClient) {
super('https://localhost:5001/api/location');
super(`${endpoint}/api/location`);
}

toEditDTO(model: SingerLocation): UpdateSingerLocationDTO {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { GenericService } from '../generic-service';
import { HttpClient } from '@angular/common/http';
import { EventSlot } from '../../models/eventslot';
import { RegistrationDTO, CreateRegistrationDTO } from '../../DTOs/registration.dto';
import { endpoint } from '../auth-config';

@Injectable({
providedIn: 'root',
Expand Down Expand Up @@ -111,7 +112,7 @@ export class SingerEventsService extends GenericService<
return model;
}
constructor(protected httpClient: HttpClient, private singerEventsProxy: SingerEventsProxy) {
super('https://localhost:5001/api/event');
super(`${endpoint}/api/event`);
}

fetchSingerEventsData(
Expand Down

0 comments on commit c6a552c

Please sign in to comment.