All in GraphQL #34

Merged
timw4mail merged 87 commits from develop into master 2020-12-01 10:07:49 -05:00
4 changed files with 21 additions and 7 deletions
Showing only changes of commit 9c01f3fbd0 - Show all commits

View File

@ -2,12 +2,12 @@ query ($slug: String!, $type: media_type!, $status: [LibraryEntryStatus!]) {
findProfileBySlug(slug: $slug) {
library {
all(mediaType: $type, status: $status) {
# pageInfo {
# endCursor
# hasNextPage
# hasPreviousPage
# startCursor
# }
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
totalCount
nodes {
id

View File

@ -423,8 +423,15 @@ class Controller {
* @return void
*/
protected function redirect(string $url, int $code): void
{
try
{
(new HttpView())->redirect($url, $code)->send();
}
catch (\Throwable $e)
{
}
}
}
// End of BaseController.php

View File

@ -24,6 +24,12 @@ class Cache extends AbstractType {
*/
public $driver;
public $host;
public $port;
public $database;
/**
* @var array
*/

View File

@ -147,6 +147,7 @@ class HttpView implements ViewInterface{
public function redirect(string $url, int $code = 302, array $headers = []): self
{
$this->response = new Response\RedirectResponse($url, $code, $headers);
return $this;
}
/**