Try to add basic auth for dashboard, but failed due to priority problem

Hi, I freshly installed traefik via docker-compose, but the basic auth middleware that I added does not take effect (does not prompt out a user password dialog for me to fill).

I guess it's because the default router (dashboard@internal) , which has no auth middleware, has a higher priority than the router I created which has auth middleware, thus my router(dashboard@docker) can never have a chance to take effect?

How can I solve this? is there any way that I can override the default generated routers? like api@internal and dashboard@internal, and add basic auth middleware to them?