mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
Fixed rendering issue when used with FOSRestBundle and configured to not
accept html (e.g. only accept json & xml)
This commit is contained in:
parent
ed39180c6b
commit
2d0fc7fc61
@ -21,6 +21,6 @@ class ApiDocController extends Controller
|
|||||||
$extractedDoc = $this->get('nelmio_api_doc.extractor.api_doc_extractor')->all();
|
$extractedDoc = $this->get('nelmio_api_doc.extractor.api_doc_extractor')->all();
|
||||||
$htmlContent = $this->get('nelmio_api_doc.formatter.html_formatter')->format($extractedDoc);
|
$htmlContent = $this->get('nelmio_api_doc.formatter.html_formatter')->format($extractedDoc);
|
||||||
|
|
||||||
return new Response($htmlContent);
|
return new Response($htmlContent, 200, array('Content-Type' => 'text/html'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user