Bloccs.Web.Paths (bloccs_web v0.1.0)

Copy Markdown View Source

Builds dashboard URLs from the mount base path (e.g. "/bloccs"), which the router macro stashes in the session. A library can't use the host's ~p verified routes, so paths are assembled here from one source of truth.

Summary

Functions

coverage(base, id)

@spec coverage(String.t(), atom() | String.t()) :: String.t()

messages(base, id)

@spec messages(String.t(), atom() | String.t()) :: String.t()

metrics(base, id)

@spec metrics(String.t(), atom() | String.t()) :: String.t()

networks(base)

@spec networks(String.t()) :: String.t()

topology(base, id)

@spec topology(String.t(), atom() | String.t()) :: String.t()