I have been using NLP.js for a while and I want to move to a more organized setup such as with this app to speed up some of the work. The issue is I want some sort of API which I can use to easily send requests and get responses in JS to the server hosting the app. I saw some API related things with the code but I don't quite understand how to use it for what i'm trying. (Using a bot in a Discord server to link to this)
I have been using NLP.js for a while and I want to move to a more organized setup such as with this app to speed up some of the work. The issue is I want some sort of API which I can use to easily send requests and get responses in JS to the server hosting the app. I saw some API related things with the code but I don't quite understand how to use it for what i'm trying. (Using a bot in a Discord server to link to this)