Skip to content

Commit

Permalink
refactor(be): status endpoint version
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Nov 15, 2024
1 parent a7118e5 commit f39e13a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/backend/src/modules/status/status.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Controller, Get, Version, VERSION_NEUTRAL } from "@nestjs/common";
import { Controller, Get, VERSION_NEUTRAL } from "@nestjs/common";
import { ApiResponse, ApiTags } from "@nestjs/swagger";

import { ApiDescription } from "src/decorators/swagger.decorator";
Expand All @@ -10,12 +10,14 @@ import {
} from "src/modules/status/status.types";

@ApiTags("status")
@Controller("status")
@Controller({
path: "status",
version: VERSION_NEUTRAL,
})
export class StatusController {
constructor(private readonly statusService: StatusService) {}

@Get()
@Version([VERSION_NEUTRAL])
@ApiDescription({
summary: "Backend status",
})
Expand Down Expand Up @@ -46,7 +48,6 @@ export class StatusController {
}

@Get("/geo-functions")
@Version([VERSION_NEUTRAL])
@ApiDescription({ summary: "Geo functions status" })
@ApiResponse({
status: 200,
Expand All @@ -67,7 +68,6 @@ export class StatusController {
}

@Get("/db-data")
@Version([VERSION_NEUTRAL])
@ApiDescription({ summary: "DB data status" })
@ApiResponse({
status: 200,
Expand Down

0 comments on commit f39e13a

Please sign in to comment.