Begin adding unit tests for middleware

This commit is contained in:
Dane Everitt 2017-10-29 21:40:34 -05:00
parent e9aecfe6db
commit d844a36167
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 324 additions and 20 deletions

View file

@ -32,19 +32,20 @@ use Pterodactyl\Exceptions\Repository\RecordNotFoundException;
class DaemonAuthenticate
{
/**
* @var \Pterodactyl\Contracts\Repository\NodeRepositoryInterface
*/
private $repository;
/**
* Daemon routes that this middleware should be skipped on.
*
* @var array
*/
protected $except = [
'daemon.configuration',
];
/**
* @var \Pterodactyl\Contracts\Repository\NodeRepositoryInterface
*/
protected $repository;
/**
* DaemonAuthenticate constructor.
*