api(application): fix requests
This commit is contained in:
parent
409c081275
commit
5737b5dc5d
54 changed files with 88 additions and 556 deletions
|
@ -6,9 +6,6 @@ use Pterodactyl\Models\Location;
|
|||
|
||||
class UpdateLocationRequest extends StoreLocationRequest
|
||||
{
|
||||
/**
|
||||
* Determine if the requested location exists on the Panel.
|
||||
*/
|
||||
public function resourceExists(): bool
|
||||
{
|
||||
$location = $this->route()->parameter('location');
|
||||
|
@ -16,9 +13,6 @@ class UpdateLocationRequest extends StoreLocationRequest
|
|||
return $location instanceof Location && $location->exists;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rules to validate this request against.
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
$locationId = $this->route()->parameter('location')->id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue