-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from mapeveri/refactor/restructure-folder
Create api folder #73
- Loading branch information
Showing
50 changed files
with
96 additions
and
98 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import LoginPostController from '@src/api/v1/controllers/auth/loginPostController'; | ||
import RefreshTokenPostController from '@src/api/v1/controllers/auth/refreshTokenPostController'; | ||
import MeGetController from '@src/api/v1/controllers/auth/meGetController'; | ||
import SearchTermsGetController from '@src/api/v1/controllers/terms/searchTermsGetController'; | ||
import FindSuggestionsTermController from '@src/api/v1/controllers/terms/findSuggestionsTermController'; | ||
import WordPostController from '@src/api/v1/controllers/words/wordPostController'; | ||
import ExpressionPostController from '@src/api/v1/controllers/expressions/expressionPostController'; | ||
import CountriesGetController from '@src/api/v1/controllers/countries/countriesGetController'; | ||
import CountryGetController from '@src/api/v1/controllers/countries/countryGetController'; | ||
import CountryPostController from '@src/api/v1/controllers/countries/countryPostController'; | ||
import UserPutController from '@src/api/v1/controllers/user/userPutController'; | ||
import { NotificationsSseController } from '@src/api/sse/notificationsSseController'; | ||
|
||
export const controllers = [ | ||
NotificationsSseController, | ||
LoginPostController, | ||
RefreshTokenPostController, | ||
MeGetController, | ||
SearchTermsGetController, | ||
FindSuggestionsTermController, | ||
WordPostController, | ||
ExpressionPostController, | ||
CountriesGetController, | ||
CountryGetController, | ||
CountryPostController, | ||
UserPutController, | ||
]; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions
12
...ges/infrastructure/nestjs/repositories.ts → src/api/dependencyInjection/repositories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { SOCIAL_AUTHENTICATOR } from '@src/languages/domain/auth/socialAuthenticator'; | ||
import GoogleSocialAuthenticator from '../../languages/infrastructure/oauth/googleSocialAuthenticator'; | ||
import { SseService } from '@src/api/sse/sseService'; | ||
import { UnhandledExceptionsBusService } from '@src/api/sse/unhandledExceptionsBusService'; | ||
|
||
export const services = [ | ||
SseService, | ||
UnhandledExceptionsBusService, | ||
{ | ||
provide: SOCIAL_AUTHENTICATOR, | ||
useClass: GoogleSocialAuthenticator, | ||
}, | ||
]; |
2 changes: 1 addition & 1 deletion
2
...rastructure/nestjs/filters/errorFilter.ts → src/api/filters/errorFilter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ared/infrastructure/sse/sse.controller.ts → src/api/sse/notificationsSseController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...s/errors/unhandledExceptionsBusHandler.ts → src/api/sse/unhandledExceptionsBusService.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...pi/v1/controllers/auth/meGetController.ts → ...pi/v1/controllers/auth/meGetController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...llers/countries/countriesGetController.ts → ...llers/countries/countriesGetController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rollers/countries/countryGetController.ts → ...rollers/countries/countryGetController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...rs/terms/findSuggestionsTermController.ts → ...rs/terms/findSuggestionsTermController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rollers/terms/searchTermsGetController.ts → ...rollers/terms/searchTermsGetController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Module } from '@nestjs/common'; | ||
import { controllers } from '../api/dependencyInjection/controllers'; | ||
import { services } from '../api/dependencyInjection/services'; | ||
import { repositories } from '../api/dependencyInjection/repositories'; | ||
import { commands } from '../api/dependencyInjection/commandHandlers'; | ||
import { queries } from '../api/dependencyInjection/queryHandlers'; | ||
import { events } from '../api/dependencyInjection/eventHandlers'; | ||
import { projections } from '@src/api/dependencyInjection/projectionHandlers'; | ||
import { readLayers } from '@src/api/dependencyInjection/readLayers'; | ||
|
||
@Module({ | ||
imports: [], | ||
controllers, | ||
providers: [...services, ...commands, ...queries, ...events, ...projections, ...repositories, ...readLayers], | ||
}) | ||
export class LanguageModule {} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...ed/infrastructure/nestjs/logger/logger.ts → ...hared/infrastructure/logger/nestLogger.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters