1489f7a694
PufferPanel v0.9 (Laravel) is now Pterodactyl 1.0
22 lines
544 B
PHP
22 lines
544 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Http\Routes;
|
|
|
|
use Illuminate\Routing\Router;
|
|
|
|
class RestRoutes {
|
|
|
|
public function map(Router $router) {
|
|
$router->group(['prefix' => 'api/v1'], function ($server) use ($router) {
|
|
|
|
$router->group(['prefix' => 'users'], function ($server) use ($router) {
|
|
|
|
$router->get('/', [ 'uses' => 'API\UserController@getAllUsers' ]);
|
|
$router->get('/{id}/{fields?}', [ 'uses' => 'API\UserController@getUser' ])->where('id', '[0-9]+');
|
|
|
|
});
|
|
|
|
});
|
|
}
|
|
|
|
}
|