Endpoint dispatcher for Elixir umbrella application

Hello, I’m trying to create a new umbrella project which contains a couple apps like graphql, http_api, backoffice apps. and I need to build a separate “proxy” app to dispatch requests based on path example.com/api for HTTP request or example.com/admin for accessing the backoffice app. I tried a couple of approach but always keep missing a piece (couldn’t handle the web socket very well, missed server logging …). Can someone please point me to the right guide or a concrete example on how the best approach to handle this.

There are a few ways to do this. You might find this project useful as a guide:

1 Like