1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-26 02:52:30 +01:00

Disable account API until it is implemented

This commit is contained in:
Dane Everitt 2018-01-30 22:46:56 -06:00
parent 7a19019980
commit c0abf64f83
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 14 additions and 13 deletions

View File

@ -97,11 +97,11 @@
<i class="fa fa-lock"></i> <span>@lang('navigation.account.security_controls')</span> <i class="fa fa-lock"></i> <span>@lang('navigation.account.security_controls')</span>
</a> </a>
</li> </li>
<li class="{{ (Route::currentRouteName() !== 'account.api' && Route::currentRouteName() !== 'account.api.new') ?: 'active' }}"> {{--<li class="{{ (Route::currentRouteName() !== 'account.api' && Route::currentRouteName() !== 'account.api.new') ?: 'active' }}">--}}
<a href="{{ route('account.api')}}"> {{--<a href="{{ route('account.api')}}">--}}
<i class="fa fa-code"></i> <span>@lang('navigation.account.api_access')</span> {{--<i class="fa fa-code"></i> <span>@lang('navigation.account.api_access')</span>--}}
</a> {{--</a>--}}
</li> {{--</li>--}}
<li class="{{ Route::currentRouteName() !== 'index' ?: 'active' }}"> <li class="{{ Route::currentRouteName() !== 'index' ?: 'active' }}">
<a href="{{ route('index')}}"> <a href="{{ route('index')}}">
<i class="fa fa-server"></i> <span>@lang('navigation.account.my_servers')</span> <i class="fa fa-server"></i> <span>@lang('navigation.account.my_servers')</span>

View File

@ -30,15 +30,16 @@ Route::group(['prefix' => 'account'], function () {
| |
| Endpoint: /account/api | Endpoint: /account/api
| |
| Temporarily Disabled
*/ */
Route::group(['prefix' => 'account/api'], function () { //Route::group(['prefix' => 'account/api'], function () {
Route::get('/', 'AccountKeyController@index')->name('account.api'); // Route::get('/', 'AccountKeyController@index')->name('account.api');
Route::get('/new', 'AccountKeyController@create')->name('account.api.new'); // Route::get('/new', 'AccountKeyController@create')->name('account.api.new');
//
Route::post('/new', 'AccountKeyController@store'); // Route::post('/new', 'AccountKeyController@store');
//
Route::delete('/revoke/{identifier}', 'AccountKeyController@revoke')->name('account.api.revoke'); // Route::delete('/revoke/{identifier}', 'AccountKeyController@revoke')->name('account.api.revoke');
}); //});
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------