diff --git a/src/app.controller.ts b/src/app.controller.ts index cce879e..77e41b1 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get } from '@nestjs/common'; +import { Controller, Get, Redirect } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() @@ -6,7 +6,8 @@ export class AppController { constructor(private readonly appService: AppService) {} @Get() + @Redirect('https://paypal.com') getHello(): string { - return this.appService.getHello(); + return 'Hello'; } }