mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
get URL when httproute path match not RegularExpression
This commit is contained in:
@@ -36,7 +36,7 @@ async function getUrlFromHttpRoute(ingress) {
|
||||
|
||||
let url = null
|
||||
if (ingress.spec.has("hostnames")) {
|
||||
if (ingress.spec.rules[0].matches[0].path.type=="PathPrefix"){
|
||||
if (ingress.spec.rules[0].matches[0].path.type!="RegularExpression"){
|
||||
const urlHost = ingress.spec.hostnames[0];
|
||||
const urlPath = ingress.spec.rules[0].matches[0].path.value;
|
||||
const urlSchema = (await getSchemaFromGateway(ingress.spec.parentRefs[0])) ? "https" : "http";
|
||||
|
||||
Reference in New Issue
Block a user