mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +00:00
wip
This commit is contained in:
@@ -40,6 +40,14 @@ class TunnelMessageController extends Controller
|
|||||||
{
|
{
|
||||||
$subdomain = $this->detectSubdomain($request);
|
$subdomain = $this->detectSubdomain($request);
|
||||||
|
|
||||||
|
if (is_null($subdomain)) {
|
||||||
|
$httpConnection->send(
|
||||||
|
respond_html($this->getView($httpConnection, 'server.homepage'), 200)
|
||||||
|
);
|
||||||
|
$httpConnection->close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$controlConnection = $this->connectionManager->findControlConnectionForSubdomain($subdomain);
|
$controlConnection = $this->connectionManager->findControlConnectionForSubdomain($subdomain);
|
||||||
|
|
||||||
if (is_null($controlConnection)) {
|
if (is_null($controlConnection)) {
|
||||||
|
|||||||
3
resources/views/server/homepage.twig
Normal file
3
resources/views/server/homepage.twig
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<html>
|
||||||
|
<h1>Welcome to Expose</h1>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user