Plug.Static and authorization

Can I somehow combine a Plug.Static with the BasicAuth plug?

Plug.Static can’t be used in router so I think that it’s impossible, but maybe I’m wrong?

I want just to put some authorization mechanism to my directory.