Is there api to new topic using nodejs code?
-
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 theplugin.json
,package.json
, andlibrary.js
are the first files to work with. The plugin repo name / directory name will need to match the globnodebb-plugin-*
and it needs to be directly under thenode_modules/
directory which is at the root of your NodeBB directory.
Copyright © 2024 NodeBB | Contributors