mirror of
https://github.com/ceratic/project_vollidioten_website.git
synced 2026-05-14 00:16:47 +02:00
feat: add world map functionality and admin map management
- Added world map page with interactive marker display - Implemented admin map management for marker CRUD operations - Added map layers and markers seed data to database - Integrated new routes for map functionality - Updated database configuration for production environment - Added documentation page route - Enhanced package.json with required dependencies for map features
This commit is contained in:
@@ -21,7 +21,11 @@ class AuthService {
|
||||
const res = await fetch(`${API_URL}/auth/me`, { credentials: 'include' });
|
||||
if (res.ok) {
|
||||
const data = await res.json();
|
||||
this.user = data;
|
||||
// Ensure isAdmin property exists
|
||||
this.user = {
|
||||
...data,
|
||||
isAdmin: data.isAdmin || false
|
||||
};
|
||||
this.notifyListeners();
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user