Skip to main content

UserNavPreferenceController

Nav layout customization is inherently per-user personalization, not a privileged resource: every endpoint is scoped to the caller's own userId, so authentication alone is sufficient and no additional @PreAuthorize permission gate applies.

Base path/api/user-nav-preference
ModulePlatform Misc
Endpoints3
OpenAPI tagUser Nav Preference
Sourcebackend/src/main/java/com/motorph/payroll/controller/UserNavPreferenceController.java

Endpoints​

MethodPathRequiresHandler
GET/api/user-nav-preferenceAny authenticated userget()
PUT/api/user-nav-preferenceAny authenticated usersave()
DELETE/api/user-nav-preferenceAny authenticated userreset()

Call chain​

Dependencies​

Constructor-injected by Lombok's @RequiredArgsConstructor: UserNavPreferenceService.

Tables reached​

EntityTableTenant-scoped
Userusers—
UserNavPreferenceuser_nav_preferenceYes

Generated page

This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.