Skip to content

Commit

Permalink
/lookup/* route for console (#5040)
Browse files Browse the repository at this point in the history
Needed to make oxidecomputer/console#1944 work.
Adding one top-level route `/lookup/*` so we can freely add more routes
under it in the console without adding anything here.

Will hold on merging until after the release is finalized.
  • Loading branch information
david-crespo authored Feb 14, 2024
1 parent d313f7f commit 4fdedce
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 4fdedce

Please sign in to comment.