Pix Lib and Validations #2
1 changed files with 0 additions and 11 deletions
11
src/Kore.php
11
src/Kore.php
|
@ -26,15 +26,4 @@ class Kore
|
||||||
$publicKey = PublicKeyLoader::loadPublicKey($key);
|
$publicKey = PublicKeyLoader::loadPublicKey($key);
|
||||||
return $publicKey->verify(json_encode($message), $signature);
|
return $publicKey->verify(json_encode($message), $signature);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testRequest()
|
|
||||||
{
|
|
||||||
return [
|
|
||||||
'get' => curlRequest($this->url . '/get', 'GET')['status'],
|
|
||||||
'post' => curlRequest($this->url . '/post', 'POST', [], [], ['test' => 'test'])['status'],
|
|
||||||
'patch' => curlRequest($this->url . '/patch', 'PATCH', [], [], ['test' => 'test'])['status'],
|
|
||||||
'put' => curlRequest($this->url . '/put', 'PUT', [], [], ['test' => 'test'])['status'],
|
|
||||||
'delete' => curlRequest($this->url . '/delete', 'DELETE')['status']
|
|
||||||
];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue