Hey guys? im newbie on node so i want to make a custom file uploader button to upload for example ".pdf" extensions at the main page not into replies/topics. you guys know if there are any guide o plugin than i take as guide?, second question is if i able to do this just with the nodebb core or its not possible and i need to use dependencies? Thanks in advance 🙂
custom plugin with custom POST url
I need to create a plugin that creates a url like
another app will POST to that URL with some encripted information with user information, and then need nodebb to update user information to that information in the POST ( I already know how to decript the data, and how to do all user update info calls, I just dont know how to create the endpoint for POST this info)
I know I can create GET urls like this
router.get('/update-user-api', middleware.buildHeader, render); router.get('/api/update-user-api', render);
but can find documentation on how to create url for POST. Any help? maybe something that is laready done I can use as example?