<prompt> Kujenga API endpoint kwa ajili ya kupata maagizo ya wateja na ID wateja.  <response>: An API endpoint for retrieving customer orders by the customer ID can be created using various programming languages and frameworks. Below is an example using Node.js and Express.js.javascriptconst express requireexpress;const router express.Router; Assuming that we have a function that retrieves the customer orders from the databaseconst getCustomerOrders require..databasegetCustomerOrders; Endpoint URL: orderscustomer:customerIdrouter.getcustomer:customerId, async req, res try const customerId req.params.customerId; const customerOrders await getCustomerOrderscustomerId; res.status200.jsoncustomerOrders; catch error res.status500.json message: Error retrieving customer orders ; ;module.exports router;This endpoint can be accessed using the URL: orderscustomer:customerId where :customerId is the ID of the customer whose orders we want to retrieve. The getCustomerOrders function retrieves the customers orders from the database using the provided customer ID and returns them as JSON data. Any errors that occur during the process are handled by returning a 500 HTTP status code with an error message. 