This is a REST API code that has been implemented using the Express.js framework. The API listens to incoming HTTP POST requests on the endpoint "/check-for-swear-words" and takes in a JSON request body that has a single property "text", which is a string that needs to be checked for the presence of swear words.
-
Updated
Feb 14, 2023 - JavaScript