Hi, I think your question is a great case for Pipedream bot to help. I’ll pass your question to the Pipedream bot now. Please feel free to ask it any question
To achieve this in Pipedream, you can create an HTTP trigger and then use a code step to handle different paths like /enroll and /create. Here’s an example of how you can set this up: 1. Create a new workflow with an HTTP trigger. 2. Add a code step after the HTTP trigger and use the following code: export default defineComponent({ async run({ steps, $ }) { const path = steps.trigger.event.path; if (path === "/enroll") { // Handle the enroll action here } else if (path === "/create") { // Handle the create action here } else { // Handle other paths or return an error } }, }); In this example, the path variable will contain the path of the incoming HTTP request. Based on the path, you can add your logic for the /enroll and /create actions within the respective if-else blocks.