Skip to content

Plugin system bug #1977

@URVL

Description

@URVL

Impress and Node.js versions

current

Platform

No response

Describe the bug

There is this example of using the plugin: https://github.com/metarhia/Example/blob/master/application/api/geo.1.js

In the plugin source code we see that the plugin returns a function that returns a function. https://github.com/metarhia/metasql/blob/master/lib/plugins/crud.js

However, in the plugin loader, only the first function is called.

const plugin = exports(unit);

this does not allow to load the plugin normally and add the necessary endpoints to the API namespace.
And also the endpoints that should be generated by the plugin in this implementation are not given through api/system/introspect

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions