mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
feat(core): add support to controller path alias and refactor shard util
This commit is contained in:
@@ -24,7 +24,7 @@ export const isPlainObject = (fn: any): fn is object => {
|
||||
);
|
||||
};
|
||||
|
||||
export const validatePath = (path?: string): string =>
|
||||
export const addLeadingSlash = (path?: string): string =>
|
||||
path ? (path.charAt(0) !== '/' ? '/' + path : path) : '';
|
||||
|
||||
export const isFunction = (fn: any): boolean => typeof fn === 'function';
|
||||
|
||||
Reference in New Issue
Block a user