diff --git a/packages/hoppscotch-backend/src/app.controller.ts b/packages/hoppscotch-backend/src/app.controller.ts new file mode 100644 index 000000000..8ce570ea3 --- /dev/null +++ b/packages/hoppscotch-backend/src/app.controller.ts @@ -0,0 +1,9 @@ +import { Controller, Get } from '@nestjs/common'; + +@Controller('ping') +export class AppController { + @Get() + ping(): string { + return 'Success'; + } +} diff --git a/packages/hoppscotch-backend/src/app.module.ts b/packages/hoppscotch-backend/src/app.module.ts index 63a5bd579..eb0581bb5 100644 --- a/packages/hoppscotch-backend/src/app.module.ts +++ b/packages/hoppscotch-backend/src/app.module.ts @@ -19,6 +19,7 @@ import { UserCollectionModule } from './user-collection/user-collection.module'; import { ShortcodeModule } from './shortcode/shortcode.module'; import { COOKIES_NOT_FOUND } from './errors'; import { ThrottlerModule } from '@nestjs/throttler'; +import { AppController } from './app/app.controller'; @Module({ imports: [ @@ -81,5 +82,6 @@ import { ThrottlerModule } from '@nestjs/throttler'; ShortcodeModule, ], providers: [GQLComplexityPlugin], + controllers: [AppController], }) export class AppModule {}