Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueweiand committed Mar 6, 2024
1 parent 330cd2e commit 0ee2a5d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true,
"builder": "swc",
"plugins": [
"@nestjs/swagger/plugin"
]
Expand Down
14 changes: 14 additions & 0 deletions src/infra/http/app.controller.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import {
Controller,
Get
} from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';

@Controller('/')
@ApiTags('App')
export class AppController {
@Get('')
getAll() {
return 'ok';
}
}
3 changes: 2 additions & 1 deletion src/infra/http/http.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ import { CheckoutController } from './checkout.controller';
import { PaymentModule } from '../payment/payment.module';
import { GetOrdersUseCase } from '@app/application/ecommerce/use-case/get-orders';
import { CheckoutCompleteUseCase } from '@app/application/ecommerce/use-case/checkout-complete';
import { AppController } from './app.controller';

@Module({
imports: [PaymentModule, CacheManagerModule],
controllers: [ProductController, UserController, OrderController, CheckoutController],
controllers: [AppController, ProductController, UserController, OrderController, CheckoutController],
providers: [CreateProductUseCase, GetProductUseCase, CreateUserUseCase, GetUserUseCase, GetOrderUseCase, GetOrdersUseCase, CreateOrderUseCase, CheckoutUrlUseCase, CheckoutCompleteUseCase],
exports: [],
})
Expand Down

0 comments on commit 0ee2a5d

Please sign in to comment.