feat(server, models, services, frontend): integrate Click-TT account functionality

- Added ClickTtAccount model and integrated it into the server and database synchronization processes.
- Updated ClickTtPlayerRegistrationService to utilize ClickTtAccount for user account management, enhancing the registration flow.
- Modified frontend components to include navigation to Click-TT account settings and updated routing to support the new account view.
- Improved error handling and user feedback in the registration process, ensuring clarity in account-related operations.
This commit is contained in:
Torsten Schulz (local)
2026-03-11 15:47:58 +01:00
parent 2ddb63b932
commit 7196fae28e
11 changed files with 780 additions and 13 deletions

View File

@@ -0,0 +1,15 @@
import express from 'express';
import clickTtAccountController from '../controllers/clickTtAccountController.js';
import { authenticate } from '../middleware/authMiddleware.js';
const router = express.Router();
router.use(authenticate);
router.get('/account', clickTtAccountController.getAccount);
router.get('/status', clickTtAccountController.getStatus);
router.post('/account', clickTtAccountController.upsertAccount);
router.delete('/account', clickTtAccountController.deleteAccount);
router.post('/verify', clickTtAccountController.verifyLogin);
export default router;