refactor: templates api logic

This commit is contained in:
2024-11-29 23:52:19 +00:00
parent db03db3b83
commit ae8f62d77d
10 changed files with 561 additions and 428 deletions

View File

@@ -87,7 +87,8 @@ func (p *ReverseProxy) handleRequest(c echo.Context) error {
return echo.NewHTTPError(http.StatusNotFound)
}
first := strings.Split(subdomain, ".")[0]
ps := strings.Split(subdomain, ".")
first := ps[len(ps)-1]
proxy, ok := p.httpProxies[first]
if !ok {
return echo.NewHTTPError(http.StatusNotFound)