api für register
This commit is contained in:
@@ -4,8 +4,8 @@ import { Response } from 'express';
|
|||||||
|
|
||||||
@Controller()
|
@Controller()
|
||||||
export class AppController {
|
export class AppController {
|
||||||
@Get('*')
|
// @Get('*')
|
||||||
handleClientRoutes(@Res() res: Response) {
|
// handleClientRoutes(@Res() res: Response) {
|
||||||
res.sendFile(join(__dirname, '..', 'client', 'index.html'));
|
// res.sendFile(join(__dirname, '..', 'client', 'index.html'));
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export class RegisterComponent {
|
|||||||
const params = (this.route.snapshot.queryParamMap as any)["params"];
|
const params = (this.route.snapshot.queryParamMap as any)["params"];
|
||||||
this.redirectUri = params.redirect_uri;
|
this.redirectUri = params.redirect_uri;
|
||||||
this.client_id = params.client_id;
|
this.client_id = params.client_id;
|
||||||
this.http.get<any>('', {
|
this.http.get<any>('api/client', {
|
||||||
params
|
params
|
||||||
}).subscribe({
|
}).subscribe({
|
||||||
next: (client) => {
|
next: (client) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user