<?php

defined( 'ABSPATH' ) || exit;

use Vendtics\App\Http\Controllers\UnsubscribeController;
use Vendtics\App\Http\Controllers\DoubleOptInController;
use Vendtics\App\Http\Controllers\EmailTrackerController;
use Vendtics\WpMVC\Routing\Route;

require_once __DIR__ . '/admin.php';

Route::get( 'double-optin/confirm', [DoubleOptInController::class, 'confirm'] );
Route::group(
    'campaigns/email', function() {
        Route::get( 'open', [EmailTrackerController::class, 'open'] );
        Route::get( 'link', [EmailTrackerController::class, 'link'] );
        Route::get( 'unsubscribe', [UnsubscribeController::class, 'unsubscribe'] );
    }
);