Api for we post
yarn
Leave .env
as it is or change with your own values. Database access is public in mongo atlas cloud
Then run :
yarn dev
To see the api docs , after running the server go to http://localhost:5001/docs
throw new CustomError(404, 'hello');
or in a catch block:
catch (err) {
next(err);
}