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:
15
backend/routes/clickTtAccountRoutes.js
Normal file
15
backend/routes/clickTtAccountRoutes.js
Normal 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;
|
||||
Reference in New Issue
Block a user