|
|
@ -91,11 +91,14 @@ foreach ((array) scandir(__DIR__ . '/../host') as $host) |
|
|
|
$config |
|
|
|
$config |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$response->setContent( |
|
|
|
if ($list = $room->list()) |
|
|
|
$room->list() |
|
|
|
{ |
|
|
|
); |
|
|
|
$response->setContent( |
|
|
|
|
|
|
|
$list |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return $response; |
|
|
|
return $response; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Dynamical requests |
|
|
|
// Dynamical requests |
|
|
|
default: |
|
|
|
default: |
|
|
@ -111,13 +114,14 @@ foreach ((array) scandir(__DIR__ . '/../host') as $host) |
|
|
|
$config |
|
|
|
$config |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$response->setContent( |
|
|
|
if ($posts = $room->posts($matches[1])) |
|
|
|
$room->posts( |
|
|
|
{ |
|
|
|
$matches[1] |
|
|
|
$response->setContent( |
|
|
|
) |
|
|
|
$posts |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
return $response; |
|
|
|
return $response; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|