mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-10 10:34:15 +02:00
refactor: extract frontpage to template (#3130)
Also introduce usage of Response object
This commit is contained in:
@@ -36,10 +36,7 @@ class ListAction implements ActionInterface
|
||||
'description' => $bridge->getDescription()
|
||||
];
|
||||
}
|
||||
|
||||
$list->total = count($list->bridges);
|
||||
|
||||
header('Content-Type: application/json');
|
||||
print Json::encode($list);
|
||||
return new Response(Json::encode($list), 200, ['Content-Type' => 'application/json']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user