UNPKG

@zenithcore/core

Version:

Core functionality for ZenithKernel framework

12 lines (10 loc) 364 B
import { RegisterSystem } from "./RegisterSystem"; /** * Combines @RegisterSystem and marks system for HTTP exposure. */ export function ExposeRest(id: string, dependsOn: string[] = []): ClassDecorator { return function (target: any) { RegisterSystem(id, dependsOn)(target); // future: could flag for auto REST mount here if needed }; }