Trilium Frontend API
    Preparing search index...

    Interface ScriptApiContext

    Per-note context that tunes the script api surface offered to the editor, beyond what the MIME type alone implies.

    interface ScriptApiContext {
        customRequestHandler?: boolean;
    }
    Index

    Properties

    customRequestHandler?: boolean

    Whether the note is a custom request handler (has the #customRequestHandler label). Only such backend notes receive Express req/res/pathParams at runtime, so the api.req/api.res/api.pathParams members are offered only when this is true.