Remove unrequired route
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
88a93503ca
commit
aa89c908a7
@ -25,6 +25,5 @@ return [
|
|||||||
|
|
||||||
//settings
|
//settings
|
||||||
['name' => 'settings#setSettings', 'url' => 'ajax/admin.php', 'verb' => 'POST'],
|
['name' => 'settings#setSettings', 'url' => 'ajax/admin.php', 'verb' => 'POST'],
|
||||||
['name' => 'settings#getSettings', 'url' => 'ajax/settings.php', 'verb' => 'GET'],
|
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
@ -131,8 +131,8 @@ var odfViewer = {
|
|||||||
$('#richdocumentsframe').remove();
|
$('#richdocumentsframe').remove();
|
||||||
},
|
},
|
||||||
|
|
||||||
registerFilesMenu: function(response) {
|
registerFilesMenu: function() {
|
||||||
var ooxml = response.doc_format === 'ooxml';
|
var ooxml = false;
|
||||||
|
|
||||||
var docExt, spreadsheetExt, presentationExt;
|
var docExt, spreadsheetExt, presentationExt;
|
||||||
var docMime, spreadsheetMime, presentationMime;
|
var docMime, spreadsheetMime, presentationMime;
|
||||||
@ -220,12 +220,7 @@ $(document).ready(function() {
|
|||||||
&& typeof OCA.Files.fileActions !== 'undefined'
|
&& typeof OCA.Files.fileActions !== 'undefined'
|
||||||
) {
|
) {
|
||||||
odfViewer.register();
|
odfViewer.register();
|
||||||
|
odfViewer.registerFilesMenu();
|
||||||
$.get(
|
|
||||||
OC.filePath('richdocuments', 'ajax', 'settings.php'),
|
|
||||||
{},
|
|
||||||
odfViewer.registerFilesMenu
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -52,18 +52,6 @@ class SettingsController extends Controller{
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @NoAdminRequired
|
|
||||||
*
|
|
||||||
* @return JSONResponse
|
|
||||||
*/
|
|
||||||
public function getSettings() {
|
|
||||||
return new JSONResponse([
|
|
||||||
'doc_format' => $this->appConfig->getAppValue('doc_format'),
|
|
||||||
'wopi_url' => $this->appConfig->getAppValue('wopi_url'),
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $wopi_url
|
* @param string $wopi_url
|
||||||
* @param string $doc_format
|
* @param string $doc_format
|
||||||
|
Loading…
x
Reference in New Issue
Block a user