mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-17 02:19:08 +00:00
hubspot guard
This commit is contained in:
@@ -6,6 +6,8 @@ import {
|
||||
Param,
|
||||
Patch,
|
||||
Post,
|
||||
Req,
|
||||
UseGuards,
|
||||
} from '@nestjs/common';
|
||||
import { InputsService } from './inputs.service';
|
||||
import { InputsClientService } from 'src/clients/inputs/client.service';
|
||||
@@ -21,6 +23,7 @@ import {
|
||||
TestConnectionReq,
|
||||
TestConnectionRes,
|
||||
} from './dtos/input.model';
|
||||
import { AuthGuard } from '@nestjs/passport';
|
||||
|
||||
@ApiTags('inputs')
|
||||
@Controller('inputs')
|
||||
@@ -125,4 +128,14 @@ export class InputsController {
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
@UseGuards(AuthGuard('hubspot'))
|
||||
@Get('oauth/hubspot')
|
||||
async oauthHubspot(@Req() req) {
|
||||
return true;
|
||||
}
|
||||
@Get('oauth/hubspot/callback')
|
||||
async oauthHubspotCallback(@Req() req) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user