toevoeging baseApi + versienummer
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
Inloggen
|
||||
</button>
|
||||
</footer>
|
||||
<!-- <br>-->
|
||||
<p>{{appVersion}}</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -10,6 +10,10 @@ tui-error {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
p{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.header {
|
||||
text-align: center;
|
||||
margin-bottom: 28px;
|
||||
|
||||
@@ -7,6 +7,7 @@ import {AuthService} from '../../services/auth.service';
|
||||
import {UserDto} from '../../models/user-dto';
|
||||
import {HttpErrorResponse} from '@angular/common/http';
|
||||
import {TuiValidationError} from '@taiga-ui/cdk';
|
||||
import {environment} from '../../../environments/environment';
|
||||
|
||||
@Component({
|
||||
selector: 'app-login',
|
||||
@@ -26,6 +27,7 @@ import {TuiValidationError} from '@taiga-ui/cdk';
|
||||
export class LoginComponent {
|
||||
form: FormGroup;
|
||||
protected enabled = false;
|
||||
appVersion = environment.appVersion;
|
||||
|
||||
protected error = new TuiValidationError('Ongeldige gebruikersnaam of wachtwoord.');
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {Appointment} from '../models/appointment';
|
||||
import {environment} from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class AppointmentService {
|
||||
// baseApi = "http://localhost:8080/api/appointments";
|
||||
baseApi = "https://api.melvanveen.nl/api/appointments";
|
||||
baseApi = `${environment.baseApi}/appointments`;
|
||||
|
||||
constructor(private http: HttpClient) {
|
||||
}
|
||||
|
||||
@@ -3,13 +3,13 @@ import {HttpClient} from '@angular/common/http';
|
||||
import {JwtHelperService} from '@auth0/angular-jwt';
|
||||
import {Observable} from 'rxjs';
|
||||
import {jwtDecode} from 'jwt-decode';
|
||||
import {environment} from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class AuthService {
|
||||
// private baseApi = 'http://localhost:8080/api/auth/login';
|
||||
baseApi = "https://api.melvanveen.nl/api/auth/login";
|
||||
baseApi = `${environment.baseApi}/auth/login`;
|
||||
jwtHelper = new JwtHelperService();
|
||||
|
||||
constructor(private http: HttpClient) {
|
||||
|
||||
@@ -2,14 +2,13 @@ import {Injectable} from '@angular/core';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
import {Customer} from '../models/customer';
|
||||
import {Observable} from 'rxjs';
|
||||
import {environment} from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class CustomerService {
|
||||
// baseApi = "http://localhost:8080/api/customers";
|
||||
baseApi = "https://api.melvanveen.nl/api/customers";
|
||||
|
||||
baseApi = `${environment.baseApi}/customers`;
|
||||
|
||||
constructor(private http: HttpClient) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user