simple question. I’m using the subdomains example https://echo.labstack.com/cookbook/subdomains and it’s working fine.
According to this recipe you need to declare routes and middleware for each different subdomains. Is there a way to make this more dynamic and smaller in size?
For example I want to swap out code lines for general echo instance creation (
echo.New()) and let echo create a master host containing host specific necessary parts on the fly, depending on the
Compiles successful, echo listening but sending empty response and panics on runtime:
echo: http: panic serving [::1]:59138: runtime error: index out of range