From b56e89c9a5aebc0a9112b419cf0cb9957e95d47d Mon Sep 17 00:00:00 2001 From: Jonah Snider Date: Mon, 8 Apr 2024 15:46:26 -0700 Subject: [PATCH] fix(api): fix health check controller not having priority over URLs controller --- apps/api/src/app.module.ts | 2 +- apps/api/src/health/health.controller.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app.module.ts b/apps/api/src/app.module.ts index 09bb920bd..89b373229 100644 --- a/apps/api/src/app.module.ts +++ b/apps/api/src/app.module.ts @@ -17,6 +17,7 @@ import { UrlsModule } from './urls/urls.module'; @Module({ imports: [ + HealthModule, OpenapiModule, ConfigModule, SentryModule.forRootAsync({ @@ -30,7 +31,6 @@ import { UrlsModule } from './urls/urls.module'; DbModule, RedisModule, TrpcModule, - HealthModule, BlockedHostnamesModule, StatsModule, UrlStatsModule, diff --git a/apps/api/src/health/health.controller.ts b/apps/api/src/health/health.controller.ts index a590f3e3f..8c672dc0c 100644 --- a/apps/api/src/health/health.controller.ts +++ b/apps/api/src/health/health.controller.ts @@ -2,7 +2,7 @@ import { Controller, Get } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { OpenapiTag } from '../openapi/openapi-tag.enum'; -@Controller('health') +@Controller('/health') @ApiTags(OpenapiTag.Health) export class HealthController { @Get('/')