2016-09-05 16:21:36 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Pterodactyl - Panel
|
2017-01-24 17:57:08 -05:00
|
|
|
* Copyright (c) 2015 - 2017 Dane Everitt <dane@daneeveritt.com>.
|
2016-09-05 16:21:36 -04:00
|
|
|
*
|
2017-09-25 21:43:01 -05:00
|
|
|
* This software is licensed under the terms of the MIT license.
|
|
|
|
* https://opensource.org/licenses/MIT
|
2016-09-05 16:21:36 -04:00
|
|
|
*/
|
2017-04-02 00:11:52 -04:00
|
|
|
Route::get('/', 'CoreController@index')->name('api.user');
|
2016-09-05 16:21:36 -04:00
|
|
|
|
2017-04-02 00:11:52 -04:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Server Controller Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Endpoint: /api/user/server/{server}
|
|
|
|
|
|
|
|
|
*/
|
2017-04-02 13:19:39 -04:00
|
|
|
Route::group([
|
|
|
|
'prefix' => '/server/{server}',
|
|
|
|
'middleware' => 'server',
|
|
|
|
], function () {
|
2017-04-02 00:11:52 -04:00
|
|
|
Route::get('/', 'ServerController@index')->name('api.user.server');
|
2016-09-05 16:21:36 -04:00
|
|
|
|
2017-04-02 00:11:52 -04:00
|
|
|
Route::post('/power', 'ServerController@power')->name('api.user.server.power');
|
|
|
|
Route::post('/command', 'ServerController@command')->name('api.user.server.command');
|
|
|
|
});
|