https://github.com/AlessioGr/payload-plugin-lexical/blob/master/src/index.ts#L17
Is it not possible to add an endpoint to payload like that, in a plugin? Running the plugin demo, it works perfectly. But when actually installing the plugin, the new endpoint I added for some reason is not available, even though the code gets executed. ("Cannot GET /api/openai-completion")
Should it not be possible for plugins to add endpoints like that? Is it better to do that using express directly?