Skip to content

query by ___domain endpoint #4512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added endpoint to query by ___domain
  • Loading branch information
code-a-cola committed Apr 25, 2025
commit ba518d2d1497e3093460e65e6770c62c44a558b4
10 changes: 6 additions & 4 deletions backend/routes/nginx/proxy_hosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ router
.send(row);
})
.catch(next);
})
});

/**
* Specific proxy-host
Expand All @@ -133,10 +133,12 @@ router
*/
.get((req, res, next) => {
validator({
required: ['___domain'],
required: ['___domain'],
additionalProperties: false,
properties: {
___domain: {type: "string"},
___domain: {
type: 'string'
},
expand: {
$ref: 'common#/properties/expand'
}
Expand All @@ -156,7 +158,7 @@ router
.send(row);
})
.catch(next);
})
});

/**
* PUT /api/nginx/proxy-hosts/123
Expand Down