Criação do handler de autenticação, para um futuro microserviço de auth
This commit is contained in:
@@ -15,7 +15,7 @@ import {
|
||||
Post,
|
||||
UseGuards
|
||||
} from '@nestjs/common';
|
||||
import { JwtAuthGuard } from 'src/auth/guards/jwt-auth.guard'; // ajuste o caminho se necessário
|
||||
import { JwtAuthGuard } from 'src/auth/guards/jwt-auth.guard';
|
||||
import { ApiBearerAuth, ApiTags, ApiOperation } from '@nestjs/swagger';
|
||||
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ export class LogisticService {
|
||||
}
|
||||
|
||||
async getEmployee() {
|
||||
const dataSource = new DataSource(createPostgresConfig(this.configService));
|
||||
const dataSource = new DataSource(createOracleConfig(this.configService));
|
||||
await dataSource.initialize();
|
||||
const queryRunner = dataSource.createQueryRunner();
|
||||
await queryRunner.connect();
|
||||
|
||||
Reference in New Issue
Block a user