File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { RequestMethod } from '@nestjs/common/enums/request-method.enum' ;
22import {
3- VERSION_NEUTRAL ,
43 VersionValue ,
4+ VERSION_NEUTRAL ,
55} from '@nestjs/common/interfaces/version-options.interface' ;
66
77export const MODULE_INIT_MESSAGE = (
@@ -20,7 +20,7 @@ export const VERSIONED_ROUTE_MAPPED_MESSAGE = (
2020 if ( version === VERSION_NEUTRAL ) {
2121 version = 'Neutral' ;
2222 }
23- return `Mapped {${ path } , ${ RequestMethod [ method ] } }(Version : ${ version } ) route` ;
23+ return `Mapped {${ path } , ${ RequestMethod [ method ] } } (version : ${ version } ) route` ;
2424} ;
2525
2626export const CONTROLLER_MAPPING_MESSAGE = ( name : string , path : string ) =>
@@ -34,7 +34,7 @@ export const VERSIONED_CONTROLLER_MAPPING_MESSAGE = (
3434 if ( version === VERSION_NEUTRAL ) {
3535 version = 'Neutral' ;
3636 }
37- return `${ name } {${ path } }(Version : ${ version } ):` ;
37+ return `${ name } {${ path } } (version : ${ version } ):` ;
3838} ;
3939
4040export const INVALID_EXECUTION_CONTEXT = (
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export class RoutesResolver implements Resolver {
7878 const controllerName = metatype . name ;
7979
8080 paths . forEach ( path => {
81- if ( controllerVersion ) {
81+ if ( ! controllerVersion ) {
8282 this . logger . log (
8383 CONTROLLER_MAPPING_MESSAGE (
8484 controllerName ,
You can’t perform that action at this time.
0 commit comments