mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-25 03:20:44 +02:00
- Fix autofixable violations - Remove unused directives - Allow for PascalCased variables - needed for dynamically imported or assigned classes, decorators, routers, etc.
8 lines
227 B
TypeScript
8 lines
227 B
TypeScript
import { CONTROLLER_BASE_PATH } from './constants';
|
|
|
|
export const RestController =
|
|
(basePath: `/${string}` = '/'): ClassDecorator =>
|
|
(target: object) => {
|
|
Reflect.defineMetadata(CONTROLLER_BASE_PATH, basePath, target);
|
|
};
|