Skip to content

fix(api): wire missing Mount() calls for admin + rest endpoints - #494

Merged
tayebmokni merged 1 commit into
mainfrom
fix/wire-missing-admin-mounts
May 27, 2026
Merged

fix(api): wire missing Mount() calls for admin + rest endpoints#494
tayebmokni merged 1 commit into
mainfrom
fix/wire-missing-admin-mounts

Conversation

@tayebmokni

Copy link
Copy Markdown
Contributor

Adds Mount calls for users, plugins, marketplace, menus, jobs, webhooks, status, impersonate, pluginpages, webauthn, public REST (users/comments/media/terms), settings, customfields. Each is nil-tolerant (logs warn + skips when deps unavailable).

Many handler packages under apps/api/internal/admin/ and
apps/api/internal/rest/ exposed a Mount()/Routes() helper but were
never invoked from buildRouter — the admin UI 404'd on every one of
those endpoints (users, plugin-pages, marketplace, menus, jobs DLQ,
webhooks, status, impersonation, passkeys, public media/terms/users,
and the global comments view).

Each Mount call is nil-tolerant: when the underlying dependencies
aren't available (pool nil, asynq inspector unavailable, session
manager unset) the block logs a warning and skips the mount — same
posture as the surrounding wiring blocks.

Also fixes a syntax error in packages/go/plugins/manifest/manifest.go
that prevented the api from compiling: the Flags struct was missing
its closing brace after a recent merge.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Tayeb Mokni <tayeb.mokni@gmail.com>
@tayebmokni
tayebmokni merged commit 1294d92 into main May 27, 2026
15 of 22 checks passed
@tayebmokni
tayebmokni deleted the fix/wire-missing-admin-mounts branch May 27, 2026 12:55
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