feat: sync host-based public app links

This commit is contained in:
A 2026-07-22 21:43:56 +08:00
parent 10de462191
commit 8cfb6f74c1
19 changed files with 375 additions and 26 deletions

View file

@ -22,6 +22,10 @@ func (r *Router) publicLinkHost() string {
return links.Host(r.cfg.PublicBaseURL)
}
func (r *Router) publicAppLink(route string) string {
return r.appLinks.Build(route, nil)
}
func publicLinkWithBaseURL(baseURL, path string) string {
return links.Build(baseURL, path, nil)
}