Skip to content

refactor(controller): merge admin-api crate into controller#2045

Merged
LNSD merged 1 commit intomainfrom
lnsd/refactor-controller-openapi-gen
Mar 30, 2026
Merged

refactor(controller): merge admin-api crate into controller#2045
LNSD merged 1 commit intomainfrom
lnsd/refactor-controller-openapi-gen

Conversation

@LNSD
Copy link
Copy Markdown
Contributor

@LNSD LNSD commented Mar 30, 2026

Eliminate the admin-api indirection layer since controller is its sole consumer, absorbing routing, context, and handler modules directly.

  • Move ctx, build_info, handlers modules from admin-api into controller
  • Extract router() and OpenAPI spec generation into new router.rs module
  • Merge all admin-api dependencies and utoipa feature into controller
  • Move gen crate to controller/gen/ and rename to amp-controller-admin-api-gen
  • Update justfile openapi gen tasks to reference new crate name

@LNSD LNSD self-assigned this Mar 30, 2026
Eliminate the admin-api indirection layer since controller is its sole consumer, absorbing routing, context, and handler modules directly.

- Move `ctx`, `build_info`, `handlers` modules from `admin-api` into `controller`
- Extract `router()` and OpenAPI spec generation into new `router.rs` module
- Merge all `admin-api` dependencies and `utoipa` feature into controller
- Move gen crate to `controller/gen/` and rename to `amp-controller-admin-api-gen`
- Update justfile openapi gen tasks to reference new crate name

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD force-pushed the lnsd/refactor-controller-openapi-gen branch from cf51b74 to 2d35877 Compare March 30, 2026 11:46
Copy link
Copy Markdown
Contributor

@shiyasmohd shiyasmohd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LNSD LNSD merged commit ffbd846 into main Mar 30, 2026
8 checks passed
@LNSD LNSD deleted the lnsd/refactor-controller-openapi-gen branch March 30, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants