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.

24 lines
729 B
PHP

<?php
declare(strict_types=1);
use App\Controller\GameEventController;
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']);
});
// loadRoutes(BASE_PATH . '/routes');