I'm not sure if I understand your question exactly, but you can write a plugin to listen to a new route (URL endpoint) or interprocess communication and load and call NodeBB libraries.
You may consider using this plugin Git repo as a bootstrap to get you started quickly. Remember that the plugin.json, package.json, and library.js are the first files to work with. The plugin repo name / directory name will need to match the glob nodebb-plugin-* and it needs to be directly under the node_modules/ directory which is at the root of your NodeBB directory.
Upload files via API
Roman Kulik last edited by
Hi guys, I am doing some experiments with NodeBB and I'd like to load files to nodeBB, using API, not ACP.
Right now I am using route /api/admin/upload/file and it works good, but only for the Admin user. Are there any other endpoints or methods to upload files for any registered and logged in user, not only for admin.
@Roman-Kulik I come from the "ops" side of DevOps and do not know but it sure seems like there would be? Been a couple days though and none of the big kahuna devs have weighed in on this so... maybe not.
Sorry that's the best I've got but I didn't want you to feel like you are being ignored: I simply do not know.
Checking logs after an image upload: /api/post/upload might be the droid yer' looking for?