Skip to content

Commit

Permalink
/lookup/* route for console
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Feb 9, 2024
1 parent 887a91e commit ac78889
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions nexus/src/external_api/console_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ macro_rules! console_page_wildcard {
console_page_wildcard!(console_projects, "/projects/{path:.*}");
console_page_wildcard!(console_settings_page, "/settings/{path:.*}");
console_page_wildcard!(console_system_page, "/system/{path:.*}");
console_page_wildcard!(console_lookup, "/lookup/{path:.*}");
console_page!(console_root, "/");
console_page!(console_projects_new, "/projects-new");
console_page!(console_silo_images, "/images");
Expand Down
1 change: 1 addition & 0 deletions nexus/src/external_api/http_entrypoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ pub(crate) fn external_api() -> NexusApiDescription {
api.register(console_api::login_saml)?;
api.register(console_api::logout)?;

api.register(console_api::console_lookup)?;
api.register(console_api::console_projects)?;
api.register(console_api::console_projects_new)?;
api.register(console_api::console_silo_images)?;
Expand Down
2 changes: 2 additions & 0 deletions nexus/tests/integration_tests/console_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ async fn test_console_pages(cptestctx: &ControlPlaneTestContext) {
"/images",
"/utilization",
"/access",
"/lookup/",
"/lookup/abc",
];

for path in console_paths {
Expand Down

0 comments on commit ac78889

Please sign in to comment.