diff options
Diffstat (limited to 'lib/Controller/NoteController.php')
-rwxr-xr-x | lib/Controller/NoteController.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php index 8ba6302..1b6347b 100755 --- a/lib/Controller/NoteController.php +++ b/lib/Controller/NoteController.php @@ -261,6 +261,41 @@ } + + /** + * @NoAdminRequired + * @NoCSRFRequired + */ + public function getOpusDecoderJavascript(){ + $response = new StreamResponse(__DIR__.'/../../templates/CarnetElectron/reader/libs/recorder/decoderWorker.min.js'); + $response->addHeader("Content-Type", "application/javascript"); + return $response; + } + + + /** + * @NoAdminRequired + * @NoCSRFRequired + */ + public function getOpusEncoderJavascript(){ + $response = new StreamResponse(__DIR__.'/../../templates/CarnetElectron/reader/libs/recorder/encoderWorker.min.js'); + $response->addHeader("Content-Type", "application/javascript"); + return $response; + } + /** + * @PublicPage + * @NoCSRFRequired + * @NoAdminRequired + * +*/ +public function getOpusEncoder(){ + echo"bla"; + return; + $response = new StreamResponse(__DIR__.'/../../templates/CarnetElectron/reader/libs/recorder/encoderWorker.min.wasm'); + $response->addHeader("Content-Type", "application/wasm"); + return $response; +} + /** * @NoAdminRequired * @NoCSRFRequired |