<?php
/**
 * 1MZ Music Player — Bootstrap do módulo
 *
 * Área de API PRÓPRIA do leitor de música, separada do app de artista.
 * Namespace REST: /wp-json/1mzmusic/v1/*
 *
 *   GET  /1mzmusic/v1/app/config       — config/permissões (público)
 *   POST /1mzmusic/v1/account/register — criar conta (e-mail)
 *   POST /1mzmusic/v1/account/login    — entrar
 *   GET  /1mzmusic/v1/account/me        — sessão actual (Bearer)
 *   POST /1mzmusic/v1/account/logout    — sair
 *
 * @package 1MZ_Music_Player
 */

if ( ! defined( 'ABSPATH' ) ) exit;

if ( ! defined( 'MP_API_NAMESPACE' ) ) {
    define( 'MP_API_NAMESPACE', '1mzmusic/v1' );
}

require_once __DIR__ . '/mp-schema.php';
require_once __DIR__ . '/mp-config-controller.php';
require_once __DIR__ . '/mp-account-controller.php';
require_once __DIR__ . '/mp-subscriptions.php';
require_once __DIR__ . '/mp-ai-controller.php';
require_once __DIR__ . '/mp-s3-controller.php';
require_once __DIR__ . '/mp-sponsored-controller.php';
require_once __DIR__ . '/mp-verify.php';
require_once __DIR__ . '/mp-cron.php';

if ( is_admin() ) {
    require_once __DIR__ . '/mp-sponsored-admin.php';
    require_once __DIR__ . '/mp-admin.php';
}
