MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / MountPath

Method MountPath

pkg/webui/template.go:58–66  ·  view source on GitHub ↗

MountPath derives the mount path from the canonical URL of the config.

()

Source from the content-addressed store, hash-verified

56
57// MountPath derives the mount path from the canonical URL of the config.
58func (t TemplateData) MountPath() string {
59 if url, err := url.Parse(t.CanonicalURL); err == nil {
60 if url.Path == "" {
61 return "/"
62 }
63 return url.Path
64 }
65 return ""
66}
67
68const appHTML = `
69{{- $assetsBaseURL := .AssetsBaseURL -}}

Callers 6

NewFunction · 0.80
NewServerFunction · 0.80
outputMethod · 0.80
ClientLogoutMethod · 0.80
NewServerFunction · 0.80
start.goFile · 0.80

Implementers 1

templateDatapkg/email/template.go

Calls 1

ParseMethod · 0.65

Tested by

no test coverage detected