Plugins Proxy: Allow using {{ .URL }} inside "routes" section in plugin.json (#80858)

Signed-off-by: Slach <bloodjazman@gmail.com>
Co-authored-by: Andres Martinez Gotor <andres.mgotor@gmail.com>
This commit is contained in:
Eugene Klimov
2024-02-02 09:23:07 +01:00
committed by GitHub
co-authored by Andres Martinez Gotor
parent ea243b536c
commit 702e22806c
4 changed files with 34 additions and 1 deletions
+1
View File
@@ -252,6 +252,7 @@ func (proxy *DataSourceProxy) director(req *http.Request) {
ApplyRoute(req.Context(), req, proxy.proxyPath, proxy.matchedRoute, DSInfo{
ID: proxy.ds.ID,
URL: proxy.ds.URL,
Updated: proxy.ds.Updated,
JSONData: jsonData,
DecryptedSecureJSONData: decryptedValues,