Updated frontend to snake_case and fixed bugs with some pages that were not showing. Fixed authentication side.

This commit is contained in:
Muhammad Ibrahim
2025-09-21 20:27:47 +01:00
parent 875ab31317
commit 2de80f0c06
22 changed files with 581 additions and 385 deletions

View File

@@ -25,7 +25,9 @@ const authenticateToken = async (req, res, next) => {
email: true,
role: true,
is_active: true,
last_login: true
last_login: true,
created_at: true,
updated_at: true
}
});
@@ -79,7 +81,10 @@ const optionalAuth = async (req, res, next) => {
username: true,
email: true,
role: true,
is_active: true
is_active: true,
last_login: true,
created_at: true,
updated_at: true
}
});