Skip to content

Commit

Permalink
fix(api): fix health check controller not having priority over URLs c…
Browse files Browse the repository at this point in the history
…ontroller
  • Loading branch information
jonahsnider committed Apr 8, 2024
1 parent ac3f178 commit b56e89c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/api/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { UrlsModule } from './urls/urls.module';

@Module({
imports: [
HealthModule,
OpenapiModule,
ConfigModule,
SentryModule.forRootAsync({
Expand All @@ -30,7 +31,6 @@ import { UrlsModule } from './urls/urls.module';
DbModule,
RedisModule,
TrpcModule,
HealthModule,
BlockedHostnamesModule,
StatsModule,
UrlStatsModule,
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/health/health.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('/')
Expand Down

0 comments on commit b56e89c

Please sign in to comment.