mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-17 15:49:08 +00:00
hubspot oauth
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { Controller, Get, Req, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import { AuthGuard } from '@nestjs/passport';
|
||||
|
||||
@ApiTags('oauth')
|
||||
@Controller('oauth')
|
||||
export class OauthController {
|
||||
@UseGuards(AuthGuard('hubspot'))
|
||||
@Get('hubspot')
|
||||
async oauthHubspot(@Req() req) {
|
||||
console.log(req);
|
||||
return true;
|
||||
}
|
||||
|
||||
@UseGuards(AuthGuard('hubspot'))
|
||||
@Get('hubspot/callback')
|
||||
async oauthHubspotCallback() {
|
||||
console.log('hubspot/callback');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user