Is there api to new topic using nodejs code?

NodeBB Development
  • I plan to do a integration that new some topics in nodebb with the other tables from a third-party database. Is there api to invoke? better using nodejs. Would you give me some sample code please ?

  • 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

    .
    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.


Suggested Topics


  • 0 Votes
    10 Posts
    627 Views
  • 0 Votes
    1 Posts
    649 Views
  • 1 Votes
    6 Posts
    1924 Views
  • 0 Votes
    2 Posts
    945 Views
  • 0 Votes
    5 Posts
    1391 Views