mirror of
https://github.com/pelican-dev/panel.git
synced 2026-03-01 11:21:31 +03:00
34 lines
535 B
PHP
34 lines
535 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Pterodactyl\Http\Controllers\API;
|
||
|
|
|
||
|
|
use Illuminate\Http\Request;
|
||
|
|
use Pterodactyl\Models\Location;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @Resource("Servers")
|
||
|
|
*/
|
||
|
|
class LocationController extends BaseController
|
||
|
|
{
|
||
|
|
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
//
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* List All Locations
|
||
|
|
*
|
||
|
|
* Lists all locations currently on the system.
|
||
|
|
*
|
||
|
|
* @Get("/locations")
|
||
|
|
* @Versions({"v1"})
|
||
|
|
* @Response(200)
|
||
|
|
*/
|
||
|
|
public function getLocations(Request $request)
|
||
|
|
{
|
||
|
|
return Location::all();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|