ez-api/index.php
2024-10-29 13:13:37 +08:00

17 lines
403 B
PHP

<?php
include 'core/config.php';
include 'core/clean.php';
session_start();
// 获取参数
$api_class = isset($_GET['class']) ? sanitizeInput($_GET['class']) : '';
$api = isset($_GET['api']) ? sanitizeInput($_GET['api']) : '';
// 如果不是 public api 则启用路由
if ($api_class != 'public') {
include 'core/login_router.php';
}
include '/includes/' . $api_class . '/' . $api . '.php';