1
0
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:
Hillel Coren 2016-05-30 13:43:41 +03:00
parent 2f3c309d41
commit e7caa58d75
3 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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() }}"
},

View File

@ -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() }}"
},