mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-25 01:33:46 +02:00
Forgotten changes
This commit is contained in:
@@ -84,15 +84,15 @@ Route::group(['prefix' => '/locations'], function () {
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Location Controller Routes
|
||||
| Server Controller Routes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Endpoint: /api/application/servers
|
||||
|
|
||||
*/
|
||||
Route::group(['prefix' => '/servers'], function () {
|
||||
Route::bind('location', function ($value) {
|
||||
return Server::find($value) ?? new Location;
|
||||
Route::bind('server', function ($value) {
|
||||
return Server::find($value) ?? new Server;
|
||||
});
|
||||
|
||||
Route::get('/', 'Servers\ServerController@index')->name('api.application.servers');
|
||||
|
||||
Reference in New Issue
Block a user