Is it possible to implement API routing?

I am attempting to set up a specific URL route or endpoint within my serverless applications hosting.

The end goal is to have an endpoint “<my_freshdesk_url>/api/client_created” allowing me to receive data from external apps and make the calls to the Freshdesk api within my serverless app to avoid having to create a middleware api hosted elsewhere.

You cannot implement API routing in its true form. But you can get something similar using External Events, which provide an incoming webhook like function for serverless apps.

Your app cannot respond with custom responses for incoming webhook requests. And you can’t create a custom path that you want.

However, the app can listen to the onExternalEvent event, you can implement some routing in that event listener to call different internal functions based on the payload received. These functions in turn can make outgoing requests.

1 Like

Thank you so much for sharing your knowledge.

1 Like

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.