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

/**
 * Routen für Einladungen
 */

// GET /api/invite - Eigene Einladungen abrufen
router.get('/', InviteController.getMyInvitations.bind(InviteController));

// POST /api/invite - Neue Einladung senden
router.post('/', InviteController.sendInvite.bind(InviteController));

module.exports = router;

