<- Back to docs hub

frontend-admin

JWT-protected operations console for administrators: authentication, request decisions, customer messages, user management, catalogs, and infrastructure tools.

Technical foundation

Admin route map (source of truth)

Path View Auth Main source file
/admin/loginLoginNopages/admin/LoginPage.jsx
/admin/dashboardDashboardYespages/admin/DashboardPage.jsx
/admin/credit-requestsCredit RequestsYespages/admin/CreditRequestsPage.jsx
/admin/messagesMessagesYespages/admin/MessagesPage.jsx
/admin/usersUsersYespages/admin/UsersPage.jsx
/admin/credit-typesCredit TypesYespages/admin/CreditTypesPage.jsx
/admin/servicesServices ManagementYespages/admin/ServicesManagementPage.jsx
/admin/reportsReportsYespages/admin/ReportsPage.jsx
/admin/settingsSettingsYespages/admin/SettingsPage.jsx

Detailed page catalog (what each page has and what it does)

Path Primary purpose What the page contains Main user actions Main API calls
/admin/login Authenticate admin users and open secure panel access. Email/password form, validation messages, default credential helper, language selector, and success/error alerts. Submit credentials, auto-fill demo credentials, copy credential values, navigate to dashboard when token is valid. POST /api/auth/login
/admin/dashboard Provide KPI overview for operations and portfolio health. KPI cards (requests/users/amounts), bar chart by month, pie chart by status, and quick summary panel. Review volume and status trends, monitor approval/rejection distribution, detect workload spikes. GET /api/dashboard/stats, GET /api/dashboard/status-distribution
/admin/credit-requests Operate the end-to-end review workflow of loan applications. Status counters, filter buttons, request table, detail modal with applicant and financial information, action confirmations. Filter by status, open full request details, approve/reject with remarks, refresh data after decision. GET /api/creditrequests, POST /api/creditrequests/{id}/approve, POST /api/creditrequests/{id}/reject
/admin/messages Track and resolve customer messages received from contact forms. Message inbox table, status chips, status filters, detail modal with customer text, admin notes, and transition options. Open message detail, move status through workflow (new/in progress/replied/closed), soft-delete records. GET /api/contactmessages, PATCH /api/contactmessages/{id}/status, DELETE /api/contactmessages/{id}
/admin/users Manage internal users, roles, and access lifecycle. Search bar, paginated table, role/status badges, create/edit modal, delete confirmation flow. Search users, create account, edit profile/role, delete user, paginate list. GET /api/users, POST /api/users, PUT /api/users/{id}, DELETE /api/users/{id}
/admin/credit-types Maintain credit product catalog used by calculator and public pages. Credit type table with rates/limits/terms/status, create-edit modal, and destructive delete confirmation. Add new credit type, edit existing one, activate/deactivate by data update, delete obsolete product. GET /api/credittypes, POST /api/credittypes, PUT /api/credittypes/{id}, DELETE /api/credittypes/{id}
/admin/services Maintain service cards displayed on the public website. Card grid with icon/title/order/status/description, create-edit modal, and delete controls. Create service card, edit display order and metadata, remove service entry. GET /api/services, POST /api/services, PUT /api/services/{id}, DELETE /api/services/{id}
/admin/reports Reserve area for reporting and export features. Informational placeholder card with "Coming soon" state. No operational actions in current version. No backend calls in current implementation.
/admin/settings Expose maintenance and infrastructure utilities to admins. Backup section, retention/info cards, generate-backup button, system information summary, operational recommendations. Generate and download ZIP backup, review stack metadata, follow backup best practices. GET /api/backup/generate, GET /api/backup/status