mirror of
https://github.com/bitinflow/expose.git
synced 2026-11-01 13:19:09 +00:00
wip
This commit is contained in:
1 parent
22613835e4
commit
b01f55e0cb
4 files changed
+6
-1
No files matched your search
@@ -8,6 +8,7 @@ use Illuminate\Http\Request;
|
|||||||
use Psr\Http\Message\RequestInterface;
|
use Psr\Http\Message\RequestInterface;
|
||||||
use Ratchet\ConnectionInterface;
|
use Ratchet\ConnectionInterface;
|
||||||
use Ratchet\Http\HttpServerInterface;
|
use Ratchet\Http\HttpServerInterface;
|
||||||
|
use function GuzzleHttp\Psr7\parse_request;
|
||||||
|
|
||||||
abstract class Controller implements HttpServerInterface
|
abstract class Controller implements HttpServerInterface
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ abstract class AdminController extends Controller
|
|||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
$httpConnection->send(str(new Response(401, [
|
$httpConnection->send(str(new Response(401, [
|
||||||
'WWW-Authenticate' => 'Basic realm="Expose"'
|
'WWW-Authenticate' => 'Basic realm="Expose"'
|
||||||
], 'foo')));
|
])));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
"directories": [
|
"directories": [
|
||||||
"app",
|
"app",
|
||||||
"bootstrap",
|
"bootstrap",
|
||||||
|
"database",
|
||||||
|
"resources",
|
||||||
"config",
|
"config",
|
||||||
"vendor"
|
"vendor"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
!.gitignore
|
||||||
|
*
|
||||||
Reference in new issue
Block a user