Documentation
    Preparing search index...

    Represents a controller that has been scanned and analyzed by the routes scanner. Contains metadata about the controller class and the specific method being called.

    const controller: ScannedController = {
    name: 'UsersController',
    path: '/project/app/controllers/users_controller.ts',
    method: 'index',
    import: {
    type: 'default',
    specifier: '#controllers/users_controller',
    value: 'UsersController'
    }
    }
    type ScannedController = {
        name: string;
        path: string;
        method: string;
        import: { type: "default"; specifier: string; value: string };
    }
    Index

    Properties

    Properties

    name: string

    The name of the controller class

    path: string

    Absolute file path to the controller

    method: string

    The method name being called on the controller

    import: { type: "default"; specifier: string; value: string }

    Import information for the controller

    Type Declaration

    • type: "default"

      Import type (always 'default' for controllers)

    • specifier: string

      Import specifier used to import the controller

    • value: string

      The imported value name