1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-10-28 04:42:29 +01:00
Pterodactyl-Panel/routes/api.php

28 lines
846 B
PHP
Raw Normal View History

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