Version 5.1 - All the GraphQL #32
@ -2,12 +2,12 @@ query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
|
|||||||
findProfileBySlug(slug: $slug) {
|
findProfileBySlug(slug: $slug) {
|
||||||
library {
|
library {
|
||||||
all(mediaType: $type, status: $status) {
|
all(mediaType: $type, status: $status) {
|
||||||
# pageInfo {
|
pageInfo {
|
||||||
# endCursor
|
endCursor
|
||||||
# hasNextPage
|
hasNextPage
|
||||||
# hasPreviousPage
|
hasPreviousPage
|
||||||
# startCursor
|
startCursor
|
||||||
# }
|
}
|
||||||
totalCount
|
totalCount
|
||||||
nodes {
|
nodes {
|
||||||
id
|
id
|
||||||
|
@ -423,8 +423,15 @@ class Controller {
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function redirect(string $url, int $code): void
|
protected function redirect(string $url, int $code): void
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
(new HttpView())->redirect($url, $code)->send();
|
(new HttpView())->redirect($url, $code)->send();
|
||||||
}
|
}
|
||||||
|
catch (\Throwable $e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// End of BaseController.php
|
// End of BaseController.php
|
@ -24,6 +24,12 @@ class Cache extends AbstractType {
|
|||||||
*/
|
*/
|
||||||
public $driver;
|
public $driver;
|
||||||
|
|
||||||
|
public $host;
|
||||||
|
|
||||||
|
public $port;
|
||||||
|
|
||||||
|
public $database;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
|
@ -147,6 +147,7 @@ class HttpView implements ViewInterface{
|
|||||||
public function redirect(string $url, int $code = 302, array $headers = []): self
|
public function redirect(string $url, int $code = 302, array $headers = []): self
|
||||||
{
|
{
|
||||||
$this->response = new Response\RedirectResponse($url, $code, $headers);
|
$this->response = new Response\RedirectResponse($url, $code, $headers);
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user