mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-13 04:59:24 +03:00
Merge pull request #66 from tonivdv/master
Fixed rendering issue when used with FOSRestBundle
This commit is contained in:
commit
3028cb63d8
@ -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