api für register
This commit is contained in:
@@ -4,8 +4,8 @@ import { Response } from 'express';
|
||||
|
||||
@Controller()
|
||||
export class AppController {
|
||||
@Get('*')
|
||||
handleClientRoutes(@Res() res: Response) {
|
||||
res.sendFile(join(__dirname, '..', 'client', 'index.html'));
|
||||
}
|
||||
// @Get('*')
|
||||
// handleClientRoutes(@Res() res: Response) {
|
||||
// res.sendFile(join(__dirname, '..', 'client', 'index.html'));
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -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>('', {
|
||||
this.http.get<any>('api/client', {
|
||||
params
|
||||
}).subscribe({
|
||||
next: (client) => {
|
||||
|
||||
Reference in New Issue
Block a user