SlowpokeArc v0.2.0 SlowpokeArc.StaticPlug View Source
Manages serving static files uploaded to slowpoke_arc storage.
It may be the case that when you returned an URL it was on local storage
but when front-end party tried to load it, the resource was already
uploaded on an inet storage and got deleted locally, so with default
Plug.Static
we get 404.
This plug allows to redirect on requests to static files that hadn't been found locally.
It accepts the very same parameters Plug.Static
does, except it
requires :arc_definition
key, have which been not provided, raises
MissingArcDefinition
exception. slowpoke arc storage provides
its own plug that passes :arc_definition
key into options, so you
shouldn't use this module directly.