DEV Community

Henrik Vendelbo
Henrik Vendelbo

Posted on


Plug.Static priv/a/:id/b

I'm setting up some routing to static assets. I essentially have a buckets file structure with IDs in the path. Is there a way to use variables in the paths. For instance,

plug Plug.Static,
at: "/public/:id/:bid",
from: {:baspia, "priv/public/:id/bundles/:bid.json"}

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git