Initial Commit of Files
PufferPanel v0.9 (Laravel) is now Pterodactyl 1.0
This commit is contained in:
commit
1489f7a694
154 changed files with 10159 additions and 0 deletions
22
app/Http/Routes/RestRoutes.php
Normal file
22
app/Http/Routes/RestRoutes.php
Normal file
|
@ -0,0 +1,22 @@
|
|||
<?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]+');
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue