URL angepasst

This commit is contained in:
Bastian Wagner
2024-09-12 09:50:57 +02:00
parent 2359c9c5e9
commit 2362f04704
17 changed files with 164 additions and 13 deletions

View File

@@ -39,7 +39,7 @@ export class RegisterComponent {
const params = (this.route.snapshot.queryParamMap as any)["params"];
this.redirectUri = params.redirect_uri;
this.client_id = params.client_id;
this.http.get<any>('api/auth/', {
this.http.get<any>('', {
params
}).subscribe({
next: (client) => {
@@ -57,7 +57,7 @@ export class RegisterComponent {
this.toast.error('Passwords do not match');
return;
}
this.http.post('api/auth/register?'+ 'client_id=' + this.client_id, this.registerForm.value).pipe(
this.http.post('api/register?'+ 'client_id=' + this.client_id, this.registerForm.value).pipe(
this.toast.observe({
loading: 'Registering...',
success: 'Registration successfull, please log in',