add route module

This commit is contained in:
2025-06-12 23:32:23 +08:00
parent 92b93e2e89
commit 1057041738
4 changed files with 162 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
export const CONTROLLER_DEPENDS = 'controller_depends';
@@ -0,0 +1,5 @@
import { SetMetadata, Type } from '@nestjs/common';
import { CONTROLLER_DEPENDS } from '../constants';
export const Depends = (...depends: Type<any>[]) => SetMetadata(CONTROLLER_DEPENDS, depends ?? []);