import {ComponentType} from "../../../enum" import {IController} from "../../interface" import {ConstructorType} from "../../type" import Component from "./NormalComponent" export default class ControllerComponent extends Component implements IController{ public route: string public cost!: ConstructorType public type: ComponentType = ComponentType.CONTROLLER constructor({route = '/', cost = ControllerComponent} = {}){ super({cost, type: ComponentType.CONTROLLER}) this.route = route } }