const express = require('express');
const router = express.Router();
const ProfileController = require('../controllers/ProfileController');

/**
 * Routen für Benutzer-Profil
 */

// GET /api/profile/states - Alle Bundesländer abrufen
router.get('/states', ProfileController.getStates.bind(ProfileController));

// GET /api/profile - Profil abrufen
router.get('/', ProfileController.getProfile.bind(ProfileController));

// PUT /api/profile - Profil aktualisieren
router.put('/', ProfileController.updateProfile.bind(ProfileController));

module.exports = router;

