Skip to content

Commit

Permalink
Move shared guards
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Apr 28, 2024
1 parent 62d33cf commit 9e0cd98
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/languages/app/controllers/v1/auth/meGetController.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Request } from 'express';
import { Controller, Get, HttpCode, Inject, Req, UseGuards } from '@nestjs/common';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import MeGetResponseDto from './meGetResponseDto';
import {
ApiBadRequestResponse,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import FindCountriesQuery from '@src/languages/application/country/query/findAll/findCountriesQuery';
import { Controller, Get, HttpCode, Inject, UseGuards } from '@nestjs/common';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import CountryGetResponseDto from './countryGetResponse';
import {
ApiBadRequestResponse,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import FindCountryQuery from '@src/languages/application/country/query/find/findCountryQuery';
import { Controller, Get, HttpCode, Inject, Param, UseGuards } from '@nestjs/common';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import CountryGetResponseDto from './countryGetResponse';
import {
ApiBadRequestResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import CreateCountryCommand from '@src/languages/application/country/command/cre
import { LanguagePrimitives } from '@src/languages/domain/country/language';
import { Body, Controller, HttpCode, HttpStatus, Inject, Post, UseGuards } from '@nestjs/common';
import CountryPostDto from './countryPostDto';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import {
ApiCreatedResponse,
ApiBadRequestResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import CreateExpressionCommand from '@src/languages/application/term/command/cre
import { ExpressionTermPrimitives } from '@src/languages/domain/term/expression/expressionTerm';
import { Body, Controller, HttpCode, HttpStatus, Inject, Post, UseGuards } from '@nestjs/common';
import ExpressionPostDto from './expressionPostDto';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import {
ApiBadRequestResponse,
ApiCreatedResponse,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Request } from 'express';
import { Controller, Get, HttpCode, Inject, Req, UseGuards } from '@nestjs/common';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import {
ApiBadRequestResponse,
ApiInternalServerErrorResponse,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import SearchTermQuery from '@src/languages/application/term/query/search/searchTermQuery';
import { Controller, Get, HttpCode, Inject, Param, Query, UseGuards } from '@nestjs/common';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import {
ApiBadRequestResponse,
ApiInternalServerErrorResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import CreateWordCommand from '@src/languages/application/term/command/create/cr
import { WordTermPrimitives } from '@src/languages/domain/term/word/wordTerm';
import { Body, Controller, HttpCode, HttpStatus, Inject, Post, UseGuards } from '@nestjs/common';
import WordPostDto from './wordPostDto';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import {
ApiCreatedResponse,
ApiBadRequestResponse,
Expand Down
2 changes: 1 addition & 1 deletion src/languages/app/controllers/v1/user/userPutController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@nestjs/swagger';
import { Request } from 'express';
import { COMMAND_BUS, CommandBus } from '@src/shared/domain/bus/commandBus/commandBus';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import UserPutDto from '@src/languages/app/controllers/v1/user/userPutDto';
import UpdateUserCommand from '@src/languages/application/user/command/update/updateUserCommand';

Expand Down
2 changes: 1 addition & 1 deletion src/shared/_dependencyInjection/services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SOCIAL_AUTHENTICATOR } from '@src/languages/domain/auth/socialAuthenticator';
import GoogleSocialAuthenticator from '@src/languages/infrastructure/oauth/googleSocialAuthenticator';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import { JwtStrategy } from '@src/shared/infrastructure/auth/strategies/jwtStrategy';
import { APP_FILTER } from '@nestjs/core';
import { NestErrorFilter } from '@src/shared/exceptions/nestErrorFilter';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Global, Module } from '@nestjs/common';
import { COMMAND_BUS } from '@src/shared/domain/bus/commandBus/commandBus';
import { LOGGER } from '@src/shared/domain/logger';
import { ASYNC_EVENT_BUS, EVENT_BUS } from '@src/shared/domain/bus/eventBus/eventBus';
import { NestJwtAuthGuard } from '@src/shared/infrastructure/api/guards/nestJwtAuthGuard';
import { NestJwtAuthGuard } from '@src/shared/guards/nestJwtAuthGuard';
import { JwtStrategy } from '@src/shared/infrastructure/auth/strategies/jwtStrategy';
import { JwtModule } from '@nestjs/jwt';
import { CqrsModule } from '@nestjs/cqrs';
Expand Down

0 comments on commit 9e0cd98

Please sign in to comment.