Add an ETag for the search providers
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8e22c90946
commit
a8d9b22beb
|
@ -72,9 +72,10 @@ class UnifiedSearchController extends OCSController {
|
||||||
public function getProviders(string $from = ''): DataResponse {
|
public function getProviders(string $from = ''): DataResponse {
|
||||||
[$route, $parameters] = $this->getRouteInformation($from);
|
[$route, $parameters] = $this->getRouteInformation($from);
|
||||||
|
|
||||||
return new DataResponse(
|
$result = $this->composer->getProviders($route, $parameters);
|
||||||
$this->composer->getProviders($route, $parameters)
|
$response = new DataResponse($result);
|
||||||
);
|
$response->setETag(md5(json_encode($result)));
|
||||||
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue