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.
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
use App\Controller\GameEventController;
|
|
|
|
use App\Controller\SmsController;
|
|
|
|
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']);
|
|
|
|
});
|
|
|
|
|
|
|
|
Router::addGroup('/message', function () {
|
|
|
|
Router::post('/sms-send', [SmsController::class, 'send']);
|
|
|
|
Router::post('/sms-check', [SmsController::class, 'check']);
|
|
|
|
});
|
|
|
|
|
|
|
|
// loadRoutes(BASE_PATH . '/routes');
|