How to use a default Route or empty rule?

Is there a way to specify a default route?

I see that rule has to be present on http.routers and it may not be empty. This does not work and logs an error.

[http.routers.router0]
rule = "" 

The Workaround I'm using right now is:

[http.routers.router0]
rule ="Host(``)"

This also logs an error but works...

So what is the correct way?

@pumelo,

If you want a rule that matches all requests, try:

PathPrefix(`/`)

@daniel.tomcej awesome thank you.