@@ -1,6 +1,7 @@
|
||||
import { Controller, ControllerOptions } from '@nestjs/common'
|
||||
|
||||
import { API_VERSION } from '~/app.config'
|
||||
import { isDev } from '~/global/env.global'
|
||||
|
||||
export const apiRoutePrefix = isDev ? '' : `/api/v${API_VERSION}`
|
||||
export const ApiController: (
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { ApiTags } from '@nestjs/swagger'
|
||||
|
||||
import { isDev } from '~/global/env.global'
|
||||
|
||||
export const ApiName: ClassDecorator = (target) => {
|
||||
if (!isDev) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user