You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
939 B
PHTML

2 years ago
<?php
declare(strict_types=1);
use App\Controller\GameEventController;
2 years ago
use App\Controller\SmsController;
2 years ago
use App\Controller\StatisticsController;
use Hyperf\HttpServer\Router\Router;
Router::get('/favicon.ico', function () {
return '';
});
Router::addGroup('/game-event', function () {
Router::post('/recharge', [GameEventController::class, 'recharge']);
Router::post('/login', [GameEventController::class, 'login']);
Router::post('/register', [GameEventController::class, 'register']);
Router::post('/save-role', [GameEventController::class, 'saveRole']);
});
Router::addGroup('/statistics', function () {
Router::post('/player-retention', [StatisticsController::class, 'playerRetention']);
});
2 years ago
Router::addGroup('/message', function () {
Router::post('/sms-send', [SmsController::class, 'send']);
Router::post('/sms-check', [SmsController::class, 'check']);
});
2 years ago
// loadRoutes(BASE_PATH . '/routes');