mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Changed route to use plurarl 'documents'
This commit is contained in:
parent
2f3c309d41
commit
e7caa58d75
@ -155,7 +155,7 @@ Route::group(['middleware' => 'auth:user'], function() {
|
||||
Route::get('documents/{documents}/{filename?}', 'DocumentController@get');
|
||||
Route::get('documents/js/{documents}/{filename}', 'DocumentController@getVFSJS');
|
||||
Route::get('documents/preview/{documents}/{filename?}', 'DocumentController@getPreview');
|
||||
Route::post('document', 'DocumentController@postUpload');
|
||||
Route::post('documents', 'DocumentController@postUpload');
|
||||
Route::delete('documents/{documents}', 'DocumentController@delete');
|
||||
|
||||
Route::get('quotes/create/{client_id?}', 'QuoteController@create');
|
||||
|
@ -230,7 +230,7 @@
|
||||
|
||||
// Initialize document upload
|
||||
dropzone = new Dropzone('#document-upload', {
|
||||
url:{!! json_encode(url('document')) !!},
|
||||
url:{!! json_encode(url('documents')) !!},
|
||||
params:{
|
||||
_token:"{{ Session::getToken() }}"
|
||||
},
|
||||
|
@ -1007,7 +1007,7 @@
|
||||
}
|
||||
|
||||
window.dropzone = new Dropzone('#document-upload .dropzone', {
|
||||
url:{!! json_encode(url('document')) !!},
|
||||
url:{!! json_encode(url('documents')) !!},
|
||||
params:{
|
||||
_token:"{{ Session::getToken() }}"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user